From 9f5ed0369e230008fba21b282ad55545ab230576 Mon Sep 17 00:00:00 2001 From: Anoesj Date: Sun, 16 Aug 2020 13:24:46 +0200 Subject: [PATCH] Fix only replacing wildcard at end --- src/common.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common.js b/src/common.js index a7eeb0b1..98b8353e 100644 --- a/src/common.js +++ b/src/common.js @@ -239,7 +239,7 @@ function setup(env) { function toNamespace(regexp) { return regexp.toString() .substring(2, regexp.toString().length - 2) - .replace(/\.\*\?$/, '*'); + .replace(/\.\*\?/, '*'); } /**