Skip to content

Commit ab95e32

Browse files
committed
Remove RegExp.escape call
1 parent 3c41d8f commit ab95e32

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

build.mjs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,8 @@ const virtualEntrypointPlugin = {
6565
name: "virtual-actions-entrypoint",
6666
setup(build) {
6767
const namespace = "actions-entrypoint";
68-
build.onResolve({ filter: new RegExp(`^${RegExp.escape(SHARED_ENTRYPOINT)}$`) }, () => ({
68+
// Ideally, we'd `RegExp.escape` the entrypoint here, but that API isn't supported in Node 20. Since we're dealing with a hardcoded string, this isn't too much of a problem.
69+
build.onResolve({ filter: new RegExp(`^${SHARED_ENTRYPOINT}$`) }, () => ({
6970
path: SHARED_ENTRYPOINT,
7071
namespace,
7172
}));

0 commit comments

Comments
 (0)