From 0e3312b01b893fae8abfa3144cc0492a4b79781a Mon Sep 17 00:00:00 2001 From: Luigi Pinca Date: Tue, 30 May 2023 08:11:06 +0200 Subject: [PATCH] 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: https://github.com/nodejs/node/pull/48227 Reviewed-By: Mestery Reviewed-By: James M Snell --- 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 23590d58a587d9..0fdc07b939e87e 100644 --- a/test/parallel/test-process-versions.js +++ b/test/parallel/test-process-versions.js @@ -58,7 +58,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);