Skip to content

Commit 1bc47a4

Browse files
richardlautargos
authored andcommitted
test: fix test to allow quictls fork of OpenSSL 3
The quictls fork of OpenSSL identifies itself with a `+quic` suffix in its version string. This was previously rejected by the version string check as the `+` was not an allowed character. PR-URL: #38372 Refs: 7ac6265 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Colin Ihrig <[email protected]>
1 parent 17856f1 commit 1bc47a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/parallel/test-process-versions.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ if (common.hasCrypto) {
5454
// The following also matches a development version of OpenSSL 3.x which
5555
// can be in the format '3.0.0-alpha4-dev'. This can be handy when building
5656
// and linking against the main development branch of OpenSSL.
57-
/^\d+\.\d+\.\d+(-[-a-z0-9]+)?$/ :
57+
/^\d+\.\d+\.\d+(?:[-+][a-z0-9]+)*$/ :
5858
/^\d+\.\d+\.\d+[a-z]?(\+quic)?(-fips)?$/;
5959
assert(versionRegex.test(process.versions.openssl));
6060
}

0 commit comments

Comments
 (0)