Skip to content

Commit

Permalink
Fix check for generated code when last updated is a release candidate
Browse files Browse the repository at this point in the history
  • Loading branch information
frangio committed Jun 14, 2022
1 parent ed704d8 commit 109778c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scripts/checks/generation.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
set -euo pipefail

npm run generate
git diff --exit-code
git diff -R --exit-code
2 changes: 1 addition & 1 deletion scripts/generate/run.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ function getVersion (path) {
try {
return fs
.readFileSync(path, 'utf8')
.match(/\/\/ OpenZeppelin Contracts \(last updated v\d+\.\d+\.\d+\)/)[0];
.match(/\/\/ OpenZeppelin Contracts \(last updated v[^)]+\)/)[0];
} catch (err) {
return null;
}
Expand Down

0 comments on commit 109778c

Please sign in to comment.