Fix Autoset problem on names containing _ or -

Signed-off-by: Avior <florian.bouillon@delta-wings.net>
This commit is contained in:
Florian Bouillon 2019-12-02 17:25:23 +01:00
parent 49469191e2
commit 78a38edaeb
No known key found for this signature in database
GPG Key ID: B143FF27EF555D16

View File

@ -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 || "")