From 35a5dabadc947d16ad4f154323249c11c3f5bddd Mon Sep 17 00:00:00 2001 From: Ganesh Hegde Date: Fri, 12 Apr 2024 13:58:44 +0530 Subject: [PATCH] Update comments --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 885882e..ae39c49 100644 --- a/index.js +++ b/index.js @@ -2,7 +2,7 @@ export const to_slug = (str) => { str = str.replace(/^\s+|\s+$/g, ''); // trim str = str.toLowerCase(); - // remove accents, swap ñ for n, etc + // remove accents, swap ñ for n, etc, this could have been a better program let from = "àáäâèéëêìíïîòóöôùúüûñç·/_,:;"; let to = "aaaaeeeeiiiioooouuuunc------"; let i = 0, l = from.length; @@ -15,4 +15,4 @@ export const to_slug = (str) => { .replace(/-+/g, '-'); // collapse dashes return str; -}; \ No newline at end of file +};