From a9ad69bfa4ea4c4e803f2386ea0c36b7d71483f1 Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Mon, 30 Nov 2020 15:30:47 -0800 Subject: [PATCH] zjsunit: Include path.sep in escapeRegExp argument. Signed-off-by: Anders Kaseorg --- frontend_tests/zjsunit/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend_tests/zjsunit/index.js b/frontend_tests/zjsunit/index.js index 5d9f4c4d2a..f005abb9b2 100644 --- a/frontend_tests/zjsunit/index.js +++ b/frontend_tests/zjsunit/index.js @@ -17,9 +17,9 @@ const zjquery = require("./zjquery"); require("@babel/register")({ extensions: [".es6", ".es", ".jsx", ".js", ".mjs", ".ts"], only: [ - new RegExp("^" + _.escapeRegExp(path.resolve(__dirname, "../../static/js")) + path.sep), + new RegExp("^" + _.escapeRegExp(path.resolve(__dirname, "../../static/js") + path.sep)), new RegExp( - "^" + _.escapeRegExp(path.resolve(__dirname, "../../static/shared/js")) + path.sep, + "^" + _.escapeRegExp(path.resolve(__dirname, "../../static/shared/js") + path.sep), ), ], plugins: ["rewire-ts"],