mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
fix replace function
This commit is contained in:
@@ -1078,7 +1078,7 @@ $("#callsign").keyup(function () {
|
||||
});
|
||||
|
||||
RegExp.escape = function (text) {
|
||||
return text.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
|
||||
return String(text).replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
|
||||
}
|
||||
|
||||
|
||||
@@ -1390,4 +1390,4 @@ $(document).ready(function () {
|
||||
|
||||
// everything loaded and ready 2 go
|
||||
bc.postMessage('ready');
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user