Fix check for generated code when last updated is a release candidate

This commit is contained in:
Francisco Giordano
2022-06-14 15:38:04 -03:00
parent ed704d82b3
commit 109778c17c
2 changed files with 2 additions and 2 deletions

View File

@ -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;
}