diff --git a/test/common.js b/test/common.js index e04c20a..0c662be 100644 --- a/test/common.js +++ b/test/common.js @@ -22,6 +22,10 @@ const REPORT_SECTIONS = [ const reNewline = '(?:\\r*\\n)'; +const escapeRegex = (s) => { + return s.replace(/[\.+]/g, '\\$&'); +} + exports.findReports = (pid) => { // Default filenames are of the form node-report..