cloudify-cosmo / repex

sed on steroids
Apache License 2.0
10 stars 3 forks source link

Repex replaces all instances of a string for every match found #35

Closed nir0s closed 7 years ago

nir0s commented 8 years ago

Repex currently has a bug in which for every match found in a single file, it will replace all strings found. Instead of replacing all strings once, it will iterate over the file and for every match replace all of them. This causes an edge case in which non-explicit match expressions will result in bad replacements.