percy-cli-ruby icon indicating copy to clipboard operation
percy-cli-ruby copied to clipboard

Passing regexes doesn't seem to work / aren't easy to use

Open ukd1 opened this issue 8 years ago • 1 comments

percy snapshot build/
Creating build...
Uploading build resources...
etc...

Using the default regex from https://github.com/percy/percy-cli/blob/master/lib/percy/cli/snapshot.rb#L18 causes the following:

percy snapshot build/ --snapshots_regex "/\.(html|htm)$/"
No root resource files found. Are there HTML files in the given directory?

I'm actually trying to do something more complex, but this doesn't work. Passing unquoted also doesn't work.

p.s. hi @fotinakis

ukd1 avatar Mar 30 '17 05:03 ukd1

Hiii Russ! Agreed that regex flag is not great, but should work in this case—I think you may need to remove the trailing and leading /?

fotinakis avatar Mar 30 '17 15:03 fotinakis