From dce2065f059aa27d832b2d338e9391c245aeca19 Mon Sep 17 00:00:00 2001 From: Luigi Pinca Date: Sun, 28 May 2023 07:57:21 +0200 Subject: [PATCH] test: fix zlib version regex Add support for subrevision in regeular expression for the zlib version. Refs: https://github.com/madler/zlib/blob/48c3741002ac/zlib.h#L40 --- test/parallel/test-process-versions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/parallel/test-process-versions.js b/test/parallel/test-process-versions.js index f706bd060b45ff..b52acb132afe5c 100644 --- a/test/parallel/test-process-versions.js +++ b/test/parallel/test-process-versions.js @@ -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);