finished jump to autocomplete, now with token highlighting, #203

This commit is contained in:
azivner
2018-11-07 09:35:29 +01:00
parent 3c23d7085e
commit 1febf5136c
6 changed files with 46 additions and 52 deletions

View File

@@ -114,6 +114,10 @@ function union(a, b) {
return res;
}
function escapeRegExp(str) {
return str.replace(/([.*+?^=!:${}()|\[\]\/\\])/g, "\\$1");
}
module.exports = {
randomSecureToken,
randomString,
@@ -132,5 +136,6 @@ module.exports = {
toObject,
stripTags,
intersection,
union
union,
escapeRegExp
};