zjsunit: Include path.sep in escapeRegExp argument.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg 2020-11-30 15:30:47 -08:00 committed by Steve Howell
parent dabbc3445a
commit a9ad69bfa4
1 changed files with 2 additions and 2 deletions

View File

@ -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"],