# HG changeset patch # User Edouard Tisserant # Date 1612852884 -3600 # Node ID d4dfd47f81562d4e4ce6a4bbd8c4b45e94d030f6 # Parent f45e413a0f40048de0c41041188cd84518f61ad9 SVGHMI: Enforce formating HMI_LOCAL and PAGE_LOCAL variables until the end of variable name diff -r f45e413a0f40 -r d4dfd47f8156 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 {