https://github.com/Turistforeningen/node-mongo-querystring/blob/9e3554c2b1ea09a0845ae0526647ca5da21d33d4/index.js#L184 - should be `this.valRegex` not `this.valReqex` - but then this will replace all valid characters with '', instead of invalid chars - and is also overwritten for `^` and `$` a few lines below - this should be ``ret.value = `^${ret.value}`;`` instead - an option like `escapeRegex: true` might be more appropriate here - or `escapeRegexChars: /[\\^$.*+?()[\]{}|]/g`, where use `s.replace(this.escapeRegexChars, '\\$&')` to escape (source: lodash _.escapeRegex)
node-mongo-querystring/index.js
Line 184 in 9e3554c
this.valRegexnotthis.valReqex^and$a few lines belowret.value = `^${ret.value}`;insteadescapeRegex: truemight be more appropriate hereescapeRegexChars: /[\\^$.*+?()[\]{}|]/g, where uses.replace(this.escapeRegexChars, '\\$&')to escape (source: lodash _.escapeRegex)