Regular expression should support french names.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2017-07-26 20:58:37 +03:00
parent 08945f71f2
commit d9f93a28e4
2 changed files with 2 additions and 1 deletions

View File

@ -647,7 +647,7 @@
</xs:element>
<xs:simpleType name="shortName">
<xs:restriction base="xs:string">
<xs:pattern value="^([^\p{Nd}\p{Zs}*/&amp;|!&lt;&gt;^\()\-+.,٫, ٬.'=?:;'\&quot;]){1,1}([^\p{Zs}*/&amp;|!&lt;&gt;^\()\-+.,٫, ٬.'=?:;\&quot;]){0,}$"/>
<xs:pattern value="^([^\p{Nd}\p{Zs}*/&amp;|!&lt;&gt;^\()\-+.,٫, ٬.=?:;'\&quot;]){1,1}([^\p{Zs}*/&amp;|!&lt;&gt;^\()\-+.,٫, ٬.=?:;\&quot;]){0,}$"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="units">

View File

@ -316,6 +316,7 @@ QString NameRegExp()
}
negativeSigns.replace('-', "\\-");
groupSeparators.remove('\'');
//Same regexp in pattern.xsd shema file. Don't forget to synchronize.
// \p{Nd} - \p{Decimal_Digit_Number}