[smarcet] - #7742
* fixed slug method on datacenter locations on js side.
This commit is contained in:
parent
88738ff294
commit
6900a186cf
@ -46,8 +46,7 @@ function convertToSlug(txt){
|
||||
if(txt == null) return '';
|
||||
return txt
|
||||
.toLowerCase()
|
||||
.replace(/[^\w ]+/g,'')
|
||||
.replace(/ +/g,'-');
|
||||
.replace(/[^A-Za-z0-9-]+/g,'-');
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user