From d1d9ecfe6ec70616633b15f8653a3a430df9c3bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Zasso?= Date: Mon, 24 Apr 2017 11:54:56 +0200 Subject: [PATCH] test: support unreleased V8 versions Change the RegExp in test-process-versions so that the test can pass with V8 versions that have no patch number. PR-URL: https://github.com/nodejs/node/pull/12619 Reviewed-By: Vse Mozhet Byt Reviewed-By: Michael Dawson Reviewed-By: Colin Ihrig Reviewed-By: Richard Lau Reviewed-By: Gibson Fahnestock 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 e3fab6b5276e4f..fdbe6e0db2e601 100644 --- a/test/parallel/test-process-versions.js +++ b/test/parallel/test-process-versions.js @@ -26,5 +26,5 @@ assert(/^\d+\.\d+\.\d+(-.*)?$/.test(process.versions.http_parser)); assert(/^\d+\.\d+\.\d+(-.*)?$/.test(process.versions.node)); assert(/^\d+\.\d+\.\d+(-.*)?$/.test(process.versions.uv)); assert(/^\d+\.\d+\.\d+(-.*)?$/.test(process.versions.zlib)); -assert(/^\d+\.\d+\.\d+\.\d+$/.test(process.versions.v8)); +assert(/^\d+\.\d+\.\d+(\.\d+)?$/.test(process.versions.v8)); assert(/^\d+$/.test(process.versions.modules));