Skip to content

Commit 215b2bc

Browse files
lpincatargos
authored andcommitted
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: #48227 Reviewed-By: Mestery <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent 8c53386 commit 215b2bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/parallel/test-process-versions.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ assert.match(process.versions.brotli, commonTemplate);
6161
assert.match(process.versions.llhttp, commonTemplate);
6262
assert.match(process.versions.node, commonTemplate);
6363
assert.match(process.versions.uv, commonTemplate);
64-
assert.match(process.versions.zlib, commonTemplate);
64+
assert.match(process.versions.zlib, /^\d+(?:\.\d+){2,3}(?:-.*)?$/);
6565

6666
if (hasUndici) {
6767
assert.match(process.versions.undici, commonTemplate);

0 commit comments

Comments
 (0)