nix: make status-go version regex even more lax
In release `1.7.0` we had an issue with `status-go` version `v0.62.3.hotfix.3` not matching [Semantic Versionig](https://semver.org/#spec-item-11) so a fix was introduced in https://github.com/status-im/status-react/pull/11331 that made the regex a bit more lax. Again in `1.9.0` we had the same issue and the release not appears as `develop` instead of the actual `status-go` version, which this time was `0.63.8+hotfix.2`. Notice the `+` instead of `-` or `.` before `hotfix.2`. I've added `+` to allowed characters after the 3 digit standard version format. Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
parent
179e389e37
commit
32efcb06a0
|
@ -49,7 +49,7 @@ let
|
|||
# paths don't like slashes in them
|
||||
dropSlashes = builtins.replaceStrings [ "/" ] [ "_" ];
|
||||
# if version doesn't match this it's probably a commit, it's lax semver
|
||||
versionRegex = "^v?[[:digit:]]+\.[[:digit:]]+\.[[:digit:]]+[[:alnum:]_.-]*$";
|
||||
versionRegex = "^v?[[:digit:]]+\.[[:digit:]]+\.[[:digit:]]+[[:alnum:]+_.-]*$";
|
||||
sanitizeVersion = version:
|
||||
if (builtins.match versionRegex version) != null
|
||||
# Geth forces a 'v' prefix for all versions
|
||||
|
|
Loading…
Reference in New Issue