summaryrefslogtreecommitdiff
path: root/test/report
diff options
context:
space:
mode:
authorRich Trott <rtrott@gmail.com>2021-04-06 23:28:55 -0700
committerRich Trott <rtrott@gmail.com>2021-04-09 06:35:51 -0700
commit7e516aaac0ed707a99f1fc304cea10bb40e7fa6c (patch)
tree91e908acb4a5c0796df063502a28bfb62de6b7d5 /test/report
parent269f5132cc5a4b47c9f7c211530cac03bd23f825 (diff)
downloadnode-new-7e516aaac0ed707a99f1fc304cea10bb40e7fa6c.tar.gz
test: remove unneeded m flag on regular expressions
The m flag has no effect on regular expressions that don't match the start or the end of a line. PR-URL: https://github.com/nodejs/node/pull/38124 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Darshan Sen <raisinten@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Diffstat (limited to 'test/report')
-rw-r--r--test/report/test-report-uv-handles.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/report/test-report-uv-handles.js b/test/report/test-report-uv-handles.js
index d2dd630c46..32140cf887 100644
--- a/test/report/test-report-uv-handles.js
+++ b/test/report/test-report-uv-handles.js
@@ -97,14 +97,14 @@ if (process.argv[2] === 'child') {
// Test libuv handle key order
{
- const get_libuv = /"libuv":\s\[([\s\S]*?)\]/gm;
- const get_handle_inner = /{([\s\S]*?),*?}/gm;
+ const get_libuv = /"libuv":\s\[([\s\S]*?)\]/g;
+ const get_handle_inner = /{([\s\S]*?),*?}/g;
const libuv_handles_str = get_libuv.exec(stdout)[1];
const libuv_handles_array = libuv_handles_str.match(get_handle_inner);
for (const i of libuv_handles_array) {
// Exclude nested structure
if (i.includes('type')) {
- const handle_keys = i.match(/(".*"):/gm);
+ const handle_keys = i.match(/(".*"):/g);
assert(handle_keys[0], 'type');
assert(handle_keys[1], 'is_active');
}