Skip to content

Commit

Permalink
Remove unnecessary escape in Regex. (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
wtgtybhertgeghgtwtg authored and jonschlinkert committed Mar 3, 2018
1 parent b37f697 commit 8965a2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -331,5 +331,5 @@ utils.last = function(arr, n) {
};

utils.escapeRegex = function(str) {
return str.replace(/\\?([!^*?()\[\]{}+?/])/g, '\\$1');
return str.replace(/\\?([!^*?()[\]{}+?/])/g, '\\$1');
};

0 comments on commit 8965a2f

Please sign in to comment.