clean-special-chars
Advanced tools
Comparing version 1.0.3 to 1.0.4
@@ -19,4 +19,4 @@ var cleanSpecialChars = function(str, replaceRules) { | ||
var replaces = { | ||
"[:'!@#$%^&*()_+=]": "", | ||
"\\s": "-", | ||
"[<$+%>!`*‘|{?“=}/:\]": "", | ||
"[\s#,@&]": "-", | ||
"[àáâãäå]": "a", | ||
@@ -32,5 +32,2 @@ "æ": "ae", | ||
"[ýÿ]": "y", | ||
"#": "-", | ||
",": "-", | ||
"\\?": "-", | ||
"-+": "-", | ||
@@ -41,4 +38,2 @@ "^-+": "", | ||
// if(replaceRules) | ||
// extend(replaces, replaceRules); | ||
for (var key in replaceRules) { | ||
@@ -45,0 +40,0 @@ str = str.replace(new RegExp(key, "gi"), replaceRules[key]); |
@@ -0,0 +0,0 @@ The MIT License (MIT) |
{ | ||
"name": "clean-special-chars", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "Converts accented letters to its cleaned form like 'Ã' to 'A', 'ç' to 'c', '&!*' to '', etc. All spaces will be converted to '-' and the text is returned in Lower Case", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/DiegoZoracKy/clean-special-chars", |
@@ -0,0 +0,0 @@ # cleanSpecialChars |
3669
41