fix replace function

This commit is contained in:
HB9HIL
2024-10-08 19:26:24 +02:00
committed by GitHub
parent 7adc915b52
commit 64699b6013

View File

@@ -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');
});
});