Skip to content

Commit

Permalink
test: fix zlib version regex
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
lpinca authored May 30, 2023
1 parent 84716d8 commit 6a6b3c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/parallel/test-process-versions.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 6a6b3c5

Please sign in to comment.