mirror of
https://github.com/lucaspalomodevelop/JSSTE.git
synced 2026-03-12 23:17:22 +00:00
Update engine.js
This commit is contained in:
parent
bfc35db211
commit
f3b8516c5b
@ -8,6 +8,7 @@ let app = {};
|
||||
app.__config = require("./config");
|
||||
app.config = app.__config.getConfig();
|
||||
|
||||
//function to escape regex
|
||||
function escapeRegExp(string) {
|
||||
return string.replace(/[.*+\-?^${}()|[\]\\]/g, "\\$&");
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user