From 78a38edaeb525b56e2ce99394820df9165efe08d Mon Sep 17 00:00:00 2001 From: Avior Date: Mon, 2 Dec 2019 17:25:23 +0100 Subject: [PATCH] Fix Autoset problem on names containing `_` or `-` Signed-off-by: Avior --- src/attributes/AutosetAttribute.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/attributes/AutosetAttribute.ts b/src/attributes/AutosetAttribute.ts index c9a3815..e6c14d3 100644 --- a/src/attributes/AutosetAttribute.ts +++ b/src/attributes/AutosetAttribute.ts @@ -34,7 +34,7 @@ extends AttributeAbstract { } private normal(str: string) { - const regexp = new RegExp("{([a-zA-Z0-9]+)}") + const regexp = new RegExp("{([a-zA-Z0-9_-]+)}") let loopMax = 0 while (regexp.test(str) && loopMax++ < 10) { const el = regexp.exec(str || "")