Commit 68fea9ca authored by PhoeniX's avatar PhoeniX

Fix regexp reuse

parent ac314287
......@@ -87,7 +87,7 @@ function toRegEx (names) {
if (domains.both.length > 0) {
entries.push('([^\\.]+\\.)?(' + domains.both.join('|') + ')')
}
return new RegExp('^((' + entries.join(')|(') + '))$', 'gm')
return new RegExp('^((' + entries.join(')|(') + '))$', 'm')
}
exports.getCommonNames = getCommonNames
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment