#
msgid ""
msgstr ""
msgid "title: JavaScript naive slugify"
msgstr ""
msgid "date: 2021-04-03"
msgstr ""
msgid "layout: post"
msgstr ""
msgid "lang: en"
msgstr ""
msgid "ref: javascript-naive-slugify"
msgstr ""
msgid ""
"const s = \"Pézão: açaí, saci-pererê.\";\n"
"\n"
"function slugify(s) {\n"
" return s\n"
" .toLowerCase()\n"
" .replaceAll(\":\", \"\")\n"
" .replaceAll(\".\", \"\")\n"
" .replaceAll(\",\", \"\")\n"
" .replaceAll(\"-\", \"\")\n"
" .replaceAll(\"á\", \"a\")\n"
" .replaceAll(\"ã\", \"a\")\n"
" .replaceAll(\"à\", \"a\")\n"
" .replaceAll(\"é\", \"e\")\n"
" .replaceAll(\"ê\", \"e\")\n"
" .replaceAll(\"í\", \"i\")\n"
" .replaceAll(\"ó\", \"o\")\n"
" .replaceAll(\"ô\", \"o\")\n"
" .replaceAll(\"ú\", \"u\")\n"
" .replaceAll(\"ü\", \"u\")\n"
" .replaceAll(\"ç\", \"c\");\n"
"}\n"
"\n"
"console.log(slugify(s));\n"
msgstr ""
#~ msgid ""
#~ "const s = \"Pézão: açaí, saci-pererê.\";\n"
#~ "\n"
#~ "function slugify(s) {\n"
#~ " return s\n"
#~ " .toLowerCase()\n"
#~ " .replaceAll(\":\", \"\")\n"
#~ " .replaceAll(\".\", \"\")\n"
#~ " .replaceAll(\",\", \"\")\n"
#~ " .replaceAll(\"-\", \"\")\n"
#~ " .replaceAll(\"á\", \"a\")\n"
#~ " .replaceAll(\"ã\", \"a\")\n"
#~ " .replaceAll(\"à\", \"a\")\n"
#~ " .replaceAll(\"é\", \"e\")\n"
#~ " .replaceAll(\"ê\", \"e\")\n"
#~ " .replaceAll(\"í\", \"i\")\n"
#~ " .replaceAll(\"ó\", \"o\")\n"
#~ " .replaceAll(\"ô\", \"o\")\n"
#~ " .replaceAll(\"ú\", \"u\")\n"
#~ " .replaceAll(\"ü\", \"u\")\n"
#~ " .replaceAll(\"ç\", \"c\");\n"
#~ "}\n"
#~ "\n"
#~ "console.log(slugify(s));\n"
#~ msgstr ""