svghmi/gen_index_xhtml.xslt
changeset 3922 ffc8da83fdc2
parent 3920 0d491fada1ad
child 3928 5c662d2e3f72
--- a/svghmi/gen_index_xhtml.xslt	Thu Mar 28 12:07:24 2024 +0100
+++ b/svghmi/gen_index_xhtml.xslt	Wed Apr 03 14:17:50 2024 +0200
@@ -2907,7 +2907,7 @@
           </xsl:if>
         </xsl:for-each>
       </xsl:variable>
-      <xsl:variable name="isVarName" select="regexp:test($value,'^[a-zA-Z_][a-zA-Z0-9_]+$')"/>
+      <xsl:variable name="isVarName" select="regexp:test($value,'^[a-zA-Z_][a-zA-Z0-9_]*$')"/>
       <xsl:choose>
         <xsl:when test="$isVarName">
           <xsl:text>        const </xsl:text>