Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

project-version-bump: add word boundaries in gsub!

  • Loading branch information...
commit 2652f0c02ba8b62852e85a68d2b45ef685711386 1 parent b7a4d1d
@sunaku authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  bin/project-version-bump
View
2  bin/project-version-bump
@@ -18,7 +18,7 @@ if current = history.find {|(v,_)| v != desired_version }
def replace source, target
if target != source
system "fgrep -lR #{source.inspect} bin lib | "\
- "xargs -r sed -i 's/#{source}/#{target}/g'"
+ "xargs -r sed -i 's/\\<#{source}\\>/#{target}/g'"
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.