Commit 9f99f8c1 authored by Fabien Amarger's avatar Fabien Amarger
Browse files

[utils] Update clearString to remove "-" and strange unicode char

parent 9e364791
......@@ -160,8 +160,10 @@ export class UtilsService {
clearString(s){
//var ret = s.toLowerCase().sansAccent().removeBrackets().trim();
var ret = s.toLowerCase();
ret = ret.replace(\u0080/g, "");
ret = this.sansAccent(ret);
ret = this.removeBrackets(ret);
ret = ret.replace(/-/g, '');
ret = ret.trim();
return ret;
}
......@@ -262,4 +264,4 @@ export class UtilsService {
}
}
\ No newline at end of file
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment