diff --git a/test/parallel/test-process-versions.js b/test/parallel/test-process-versions.js index f706bd060b45ffb..b52acb132afe5c5 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);