Skip to content

Commit

Permalink
Support "u" and "s" flags (#97)
Browse files Browse the repository at this point in the history
  • Loading branch information
brettz9 authored and adamreisnz committed Oct 21, 2019
1 parent c2cf33d commit 8a01d38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/cli.js
Expand Up @@ -33,7 +33,7 @@ options.files = files.reduce((files, file) => {

//If the isRegex flag is passed, convert the from parameter to a RegExp object
if (isRegex) {
const flags = from.replace(/.*\/([gimy]*)$/, '$1');
const flags = from.replace(/.*\/([gimyus]*)$/, '$1');
const pattern = from.replace(new RegExp(`^/(.*?)/${flags}$`), '$1');
try {
options.from = new RegExp(pattern, flags);
Expand Down

0 comments on commit 8a01d38

Please sign in to comment.