mirror of
https://github.com/AikidoSec/safe-chain.git
synced 2026-05-26 12:10:49 +00:00
Fix regex
This commit is contained in:
parent
1a811edc95
commit
27e77d9b0b
1 changed files with 1 additions and 1 deletions
|
|
@ -121,5 +121,5 @@ function tokenizeVersion(version) {
|
|||
* @returns {boolean}
|
||||
*/
|
||||
function isPrerelease(version) {
|
||||
return /(?:^|[.\-_])(a|b|rc|dev)\d*/i.test(version);
|
||||
return /(a|b|rc|dev)\d+/i.test(version);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue