entity ids can contain numbers too...

This commit is contained in:
thomas committed 2019-02-16 19:59:00 +01:00
1 parent 82f5e6ffd5
commit 9203a1825b
1 file changed
+1 -1
+1 -1
View File
@@ -185,7 +185,7 @@ class {
static parseTemplateString(str) { static parseTemplateString(str) {
if(typeof(str) !== "string") return text; if(typeof(str) !== "string") return text;
var RE_entity = /^[a-z_.]+$/; var RE_entity = /^[a-z1-9_.]+$/;
var RE_if = /^if\(([^,]*),([^,]*),(.*)\)$/; var RE_if = /^if\(([^,]*),([^,]*),(.*)\)$/;
var RE_expr = /([^=<>!]+)\s*(==|<|>|<=|>=|!=)\s*([^=<>!]+)/ var RE_expr = /([^=<>!]+)\s*(==|<|>|<=|>=|!=)\s*([^=<>!]+)/