(cherry picked from commit 109778c17c7020618ea4e035efb9f0f9b82d43ca)
@@ -3,4 +3,4 @@
set -euo pipefail
npm run generate
-git diff --exit-code
+git diff -R --exit-code
@@ -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;
}