Update engine.js

This commit is contained in:
Laurenz1606 2022-02-22 21:29:35 +01:00 committed by GitHub
parent bfc35db211
commit f3b8516c5b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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, "\\$&");
}