SVGHMI: Enforce formating HMI_LOCAL and PAGE_LOCAL variables until the end of variable name svghmi
authorEdouard Tisserant <edouard.tisserant@gmail.com>
Tue, 09 Feb 2021 07:41:24 +0100
branchsvghmi
changeset 3127 d4dfd47f8156
parent 3126 f45e413a0f40
child 3128 32a4675af377
SVGHMI: Enforce formating HMI_LOCAL and PAGE_LOCAL variables until the end of variable name
svghmi/hmi_tree.ysl2
--- a/svghmi/hmi_tree.ysl2	Thu Feb 04 21:23:58 2021 +0100
+++ b/svghmi/hmi_tree.ysl2	Tue Feb 09 07:41:24 2021 +0100
@@ -120,10 +120,10 @@
                     }
                 }
                 choose {
-                    when "regexp:test($path,'^\.[a-zA-Z0-9_]+')" {
+                    when "regexp:test($path,'^\.[a-zA-Z0-9_]+$')" {
                         attrib "type" > PAGE_LOCAL
                     }
-                    when "regexp:test($path,'^[a-zA-Z0-9_]+')" {
+                    when "regexp:test($path,'^[a-zA-Z0-9_]+$')" {
                         attrib "type" > HMI_LOCAL
                     }
                     otherwise {