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:
Richard Lau authored and Daniel Bevenius committed 2021-04-26 08:24:53 +02:00
1 parent 55745a1817
commit dee37412f8
1 file changed
+1 -1
+1 -1
View File
@@ -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));
}