Skip to content

Commit

Permalink
Fix regexp reuse
Browse files Browse the repository at this point in the history
  • Loading branch information
djphoenix committed Sep 11, 2016
1 parent ac31428 commit 68fea9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Expand Up @@ -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
Expand Down

0 comments on commit 68fea9c

Please sign in to comment.