Skip to content

Commit 029706d

Browse files
committed
Fix check for generated code when last updated is a release candidate
(cherry picked from commit 109778c)
1 parent 97c46a7 commit 029706d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

scripts/checks/generation.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
set -euo pipefail
44

55
npm run generate
6-
git diff --exit-code
6+
git diff -R --exit-code

scripts/generate/run.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ function getVersion (path) {
77
try {
88
return fs
99
.readFileSync(path, 'utf8')
10-
.match(/\/\/ OpenZeppelin Contracts \(last updated v\d+\.\d+\.\d+\)/)[0];
10+
.match(/\/\/ OpenZeppelin Contracts \(last updated v[^)]+\)/)[0];
1111
} catch (err) {
1212
return null;
1313
}

0 commit comments

Comments
 (0)