SVGHMI: fix parsing of floating point and negative min and max limits in widget label syntax.
authorEdouard Tisserant
Wed, 01 Jun 2022 09:09:13 +0200
changeset 3503 49fcd5d62139
parent 3490 4f252e8d6759
child 3504 9d895a103019
SVGHMI: fix parsing of floating point and negative min and max limits in widget label syntax.
svghmi/parse_labels.ysl2
--- a/svghmi/parse_labels.ysl2	Mon May 30 12:44:04 2022 +0200
+++ b/svghmi/parse_labels.ysl2	Wed Jun 01 09:09:13 2022 +0200
@@ -13,7 +13,7 @@
 //      path value="path4" index="path4" type="HMI_LOCAL";
 //  }
 //
-const "pathregex",!"'^([^\[,]+)(\[[^\]]+\])?([\d,]*)$'"!;
+const "pathregex",!"'^([^\[,]+)(\[[^\]]+\])?([-.\d,]*)$'"!;
 
 template "*", mode="parselabel"
 {