mirror of
https://github.com/nodejs/node.git
synced 2026-11-25 23:01:06 -05:00
test: fix zlib version regex
Add support for subrevision in the regular expression for the zlib version. Refs: https://github.com/madler/zlib/blob/48c3741002ac/zlib.h#L40 PR-URL: https://github.com/nodejs/node/pull/48227 Reviewed-By: Mestery <mestery@protonmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
1 parent
8c5338648f
commit
215b2bc72c
1 file changed
+1
-1
@@ -61,7 +61,7 @@ assert.match(process.versions.brotli, commonTemplate);
|
||||
assert.match(process.versions.llhttp, commonTemplate);
|
||||
assert.match(process.versions.node, commonTemplate);
|
||||
assert.match(process.versions.uv, commonTemplate);
|
||||
assert.match(process.versions.zlib, commonTemplate);
|
||||
assert.match(process.versions.zlib, /^\d+(?:\.\d+){2,3}(?:-.*)?$/);
|
||||
|
||||
if (hasUndici) {
|
||||
assert.match(process.versions.undici, commonTemplate);
|
||||
|
||||
Reference in new issue
Block a user