Fixed issue #814. Make "\" valid character.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2018-02-27 10:22:08 +02:00
parent 9088ad93be
commit 3f77b979aa
3 changed files with 3 additions and 2 deletions

View File

@ -45,6 +45,7 @@
- [#807] Issue with "Intersection" passmark. - [#807] Issue with "Intersection" passmark.
- [#667] Check for updates - Test version. - [#667] Check for updates - Test version.
- [#808] New feature. Global line width option. - [#808] New feature. Global line width option.
- [#814] Make "\" valid character.
# Version 0.5.1 # Version 0.5.1
- [#683] Tool Seam allowance's dialog is off screen on small resolutions. - [#683] Tool Seam allowance's dialog is off screen on small resolutions.

View File

@ -751,7 +751,7 @@
</xs:element> </xs:element>
<xs:simpleType name="shortName"> <xs:simpleType name="shortName">
<xs:restriction base="xs:string"> <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:restriction>
</xs:simpleType> </xs:simpleType>
<xs:simpleType name="units"> <xs:simpleType name="units">

View File

@ -76,7 +76,7 @@ void QmuFormulaBase::InitCharSets()
// Defining identifier character sets // Defining identifier character sets
const QString nameChars = QString() + sign0 + sign1 + sign2 + sign3 + sign4 + sign5 + sign6 + sign7 + sign8 + const QString nameChars = QString() + sign0 + sign1 + sign2 + sign3 + sign4 + sign5 + sign6 + sign7 + sign8 +
sign9 + QLatin1String("_@#'") + symbols.join(""); sign9 + QLatin1String("\\_@#'") + symbols.join("");
DefineNameChars(nameChars); DefineNameChars(nameChars);
const QString oprtChars = symbols.join("") + positiveSign + negativeSign + QLatin1String("*^/?<>=!$%&|~'_"); const QString oprtChars = symbols.join("") + positiveSign + negativeSign + QLatin1String("*^/?<>=!$%&|~'_");