summaryrefslogtreecommitdiff
path: root/src/content/pastebins/2021/04/03
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2025-03-31 21:51:40 -0300
committerEuAndreh <eu@euandre.org>2025-03-31 21:51:40 -0300
commit570ec471d1605318aeefb030cd78682ae442235b (patch)
tree51e17eabe37c6689f8799b55e6875c3480329a2c /src/content/pastebins/2021/04/03
parentMakefile, mkdeps.sh: Derive index.html and feed.xml from more static "sortdat... (diff)
downloadeuandre.org-570ec471d1605318aeefb030cd78682ae442235b.tar.gz
euandre.org-570ec471d1605318aeefb030cd78682ae442235b.tar.xz
src/content/: Update all files left to asciidoc
Diffstat (limited to 'src/content/pastebins/2021/04/03')
-rw-r--r--src/content/pastebins/2021/04/03/naive-slugify-js.adoc21
1 files changed, 4 insertions, 17 deletions
diff --git a/src/content/pastebins/2021/04/03/naive-slugify-js.adoc b/src/content/pastebins/2021/04/03/naive-slugify-js.adoc
index f765495..648e5fa 100644
--- a/src/content/pastebins/2021/04/03/naive-slugify-js.adoc
+++ b/src/content/pastebins/2021/04/03/naive-slugify-js.adoc
@@ -1,20 +1,7 @@
----
+= JavaScript naive slugify
-title: JavaScript naive slugify
-
-date: 2021-04-03
-
-updated_at: 2021-08-15
-
-layout: post
-
-lang: en
-
-ref: javascript-naive-slugify
-
----
-
-```javascript
+[source,javascript]
+----
const s = "Pézão: açaí, saci-pererê.";
const slugify = s =>
@@ -37,4 +24,4 @@ const slugify = s =>
.replaceAll("ç", "c");
console.log(slugify(s));
-```
+----