Skip to content

Commit

Permalink
Backslash-escape a literal "." in a regexp
Browse files Browse the repository at this point in the history
  • Loading branch information
liblit committed May 19, 2019
1 parent 012221b commit b2adaea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion change-version.sh
Expand Up @@ -25,6 +25,6 @@ oldVersionRegex=${1//./\\.}
newVersion=$2
replace "$oldVersionRegex" "$newVersion" -name gradle.properties -o -name pom.xml

oldBundleRegex=${oldVersionRegex/%-SNAPSHOT/.qualifier}
oldBundleRegex=${oldVersionRegex/%-SNAPSHOT/\\.qualifier}
newBundle=${newVersion/%-SNAPSHOT/.qualifier}
replace "$oldBundleRegex" "$newBundle" -name feature.xml -o -name MANIFEST.MF

0 comments on commit b2adaea

Please sign in to comment.