mattlqx / pre-commit-search-and-replace

Plugin for pre-commit for arbitrary search and replace on committed files.
MIT License
12 stars 7 forks source link

use match syntax that works in pre 2.4 ruby #3

Closed aerickson closed 4 years ago

aerickson commented 4 years ago

OS X's 10.15's default ruby is still 2.3. Sourcetree (GUI git client I use) uses the system ruby to run pre-commit and the 'match?' syntax explodes. This fixes the issue.

Fix from https://github.com/teohm/git-chlog/pull/7.