Closed lunks closed 9 years ago
looks good, one question though, why double escape, wouldn't single escape be enough?
It wasn't. Not sure why, not much of a regex master myself :sweat_smile:
That's because otherwise the slash would disappear when interpolating to the regex (instead of /\.rb/
, it would be /.rb/
).
thank you!
@jish this fixes a bug - version bump needed
Released v0.25.0
https://rubygems.org/gems/pre-commit
Already upgrade our app, thanks for the swift response! :)
Keep rocking!
On Sat, Aug 29, 2015 at 4:29 PM, Josh Lubaway notifications@github.com wrote:
Released v0.25.0 https://rubygems.org/gems/pre-commit
— Reply to this email directly or view it on GitHub https://github.com/jish/pre-commit/pull/222#issuecomment-136027962.
We were not escaping the
.
correctly when looking for a specific extension. This fixes it.Just for a small context behind this fix, we have files named like
script.coffee.erb
and rubocop was trying to parse those files when it was not supposed to.Let me know if the test is on the wrong location and where should I put it in case that's true.