Allow capitals in entity templates. Fix #10
This commit is contained in:
parent
9203a1825b
commit
f5bb8e0a1f
@ -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-z1-9_.]+$/;
|
var RE_entity = /^[a-zA-Z0-9_.]+\.[a-zA-Z0-9_]+$/;
|
||||||
var RE_if = /^if\(([^,]*),([^,]*),(.*)\)$/;
|
var RE_if = /^if\(([^,]*),([^,]*),(.*)\)$/;
|
||||||
var RE_expr = /([^=<>!]+)\s*(==|<|>|<=|>=|!=)\s*([^=<>!]+)/
|
var RE_expr = /([^=<>!]+)\s*(==|<|>|<=|>=|!=)\s*([^=<>!]+)/
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user