Skip to content

Commit 0e3312b

Browse files
lpincaMoLow
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 f2bb191 commit 0e3312b

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
@@ -58,7 +58,7 @@ assert.match(process.versions.brotli, commonTemplate);
5858
assert.match(process.versions.llhttp, commonTemplate);
5959
assert.match(process.versions.node, commonTemplate);
6060
assert.match(process.versions.uv, commonTemplate);
61-
assert.match(process.versions.zlib, commonTemplate);
61+
assert.match(process.versions.zlib, /^\d+(?:\.\d+){2,3}(?:-.*)?$/);
6262

6363
if (hasUndici) {
6464
assert.match(process.versions.undici, commonTemplate);

0 commit comments

Comments
 (0)