diff --git a/hooks/pre-commit b/hooks/pre-commit index 368c135ed..0fbd577c1 100755 --- a/hooks/pre-commit +++ b/hooks/pre-commit @@ -78,7 +78,7 @@ class Bumper end bumper = Bumper.new([ - Source.new('mustache.mjs', /version: '([\d\.]*)'/), - Source.new('mustache.js.nuspec', /([\d\.]*)<\/version>/), + Source.new('mustache.mjs', /version: '([^']+)'/), + Source.new('mustache.js.nuspec', /([^<]+)<\/version>/), ]) bumper.start