mirror of
https://github.com/nodejs/node.git
synced 2026-10-14 10:26:26 -04:00
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: https://github.com/nodejs/node/pull/38372 Refs: https://github.com/nodejs/node/commit/7ac626505d2f6f2e603bd7c9ddb356c893bbbe55 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
This commit is contained in:
1 parent
55745a1817
commit
dee37412f8
1 file changed
+1
-1
@@ -54,7 +54,7 @@ if (common.hasCrypto) {
|
||||
// The following also matches a development version of OpenSSL 3.x which
|
||||
// can be in the format '3.0.0-alpha4-dev'. This can be handy when building
|
||||
// and linking against the main development branch of OpenSSL.
|
||||
/^\d+\.\d+\.\d+(-[-a-z0-9]+)?$/ :
|
||||
/^\d+\.\d+\.\d+(?:[-+][a-z0-9]+)*$/ :
|
||||
/^\d+\.\d+\.\d+[a-z]?(\+quic)?(-fips)?$/;
|
||||
assert(versionRegex.test(process.versions.openssl));
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user