Skip to content

Commit

Permalink
Merge pull request web-mech#35 from metalwihen/patch-1
Browse files Browse the repository at this point in the history
Fix regex expression
  • Loading branch information
web-mech authored Aug 2, 2018
2 parents 32efbe2 + 7460c6d commit 04ac4ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/badwords.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ var Filter = (function() {
this.list = options.emptyList && [] || Array.prototype.concat.apply(localList, [baseList, options.list || []]);
this.exclude = options.exclude || [];
this.placeHolder = options.placeHolder || '*';
this.regex = options.regex || /[^a-zA-z0-9|\$|\@]|\^/g;
this.regex = options.regex || /[^a-zA-Z0-9|\$|\@]|\^/g;
this.replaceRegex = options.replaceRegex || /\w/g;
}

Expand Down Expand Up @@ -96,4 +96,4 @@ var Filter = (function() {
return Filter;
})();

module.exports = Filter;
module.exports = Filter;

0 comments on commit 04ac4ae

Please sign in to comment.