Skip to content

Commit

Permalink
Fix patterns for updating README version numbers (#197)
Browse files Browse the repository at this point in the history
  • Loading branch information
sbabcoc authored Mar 7, 2022
1 parent 97b085d commit 5e61fec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,8 @@ test {

scmVersion {
hooks {
pre 'fileUpdate', [file: 'README.md', pattern: {v, p -> /(<version>)$v(-s[23]<\/version>)/}, replacement: {v, p -> "\$1$v\$2"}]
pre 'fileUpdate', [file: 'README.md', pattern: {v, p -> /(selenium-foundation:)$v(-s[23])/}, replacement: {v, p -> "\$1$v\$2"}]
pre 'fileUpdate', [file: 'README.md', pattern: {v, p -> /&lt;version&gt;)\d+\.\d+\.\d+(-s[23]&lt;\/version&gt;)/}, replacement: {v, p -> "\$1$v\$2"}]
pre 'fileUpdate', [file: 'README.md', pattern: {v, p -> /(selenium-foundation:)\d+\.\d+\.\d+(-s[23])/}, replacement: {v, p -> "\$1$v\$2"}]
pre 'commit'
post 'push'
}
Expand Down

0 comments on commit 5e61fec

Please sign in to comment.