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 regeular expression for the zlib version.

Refs: https://github.com/madler/zlib/blob/48c3741002ac/zlib.h#L40
  • Loading branch information
lpinca committed May 28, 2023
1 parent 70da075 commit dce2065
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+\.\d+(?:\.\d+)?(?:-.*)?$/);

if (hasUndici) {
assert.match(process.versions.undici, commonTemplate);
Expand Down

0 comments on commit dce2065

Please sign in to comment.