浏览代码

HPCC-19487 Allow dash (-) in names

Add a dash (-) to the name validation rule in related XSL

Signed-off-by: Ken Rowland <kenneth.rowland@lexisnexisrisk.com>
Ken Rowland 6 年之前
父节点
当前提交
2d097a29ca
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      initfiles/componentfiles/configxml/validateAll.xsl

+ 1 - 1
initfiles/componentfiles/configxml/validateAll.xsl

@@ -42,7 +42,7 @@ xmlns:seisint="http://seisint.com" exclude-result-prefixes="seisint">
       </xsl:if> 
     </xsl:for-each>
     <xsl:variable select="@name" name="elem1"/>
-        <xsl:if test="(translate($elem1,'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_',''))" >
+        <xsl:if test="(translate($elem1,'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_-',''))" >
       <xsl:call-template name="validationMessage">
         <xsl:with-param name="msg" select=" concat('Invalid character[@name=' ,$elem1, ']') "/>
       </xsl:call-template>