mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-04-22 23:24:43 +00:00
needed a g flag. Thx @naton. Fixes #252
This commit is contained in:
parent
b43882f268
commit
df93b9ec57
1 changed files with 1 additions and 1 deletions
|
|
@ -62,7 +62,7 @@
|
|||
|
||||
//consistent string escaping for urls and IDs
|
||||
function idStringEscape(str){
|
||||
return str.replace(/[^a-zA-Z0-9]/, '-');
|
||||
return str.replace(/[^a-zA-Z0-9]/g, '-');
|
||||
}
|
||||
|
||||
$.mobile.idStringEscape = idStringEscape;
|
||||
|
|
|
|||
Loading…
Reference in a new issue