Merge pull request #5 from Laurenz1606/patch-1

Update engine.js
This commit is contained in:
Lucas Manuel Palomo Lauterbach 2022-02-23 15:58:02 +01:00 committed by GitHub
commit 18fb15a28e
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, "\\$&");
}