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 +};