Commit 53f3cad7 authored by Damjan Jovanovic's avatar Damjan Jovanovic Committed by Alexandre Julliard

msxml3: Use XSD regex quantifier format S{0, m} instead of S{, m}.

S{,m} is invalid in libxml2 2.9.11 and later, and was never valid in the XSD specification or any XML implementation tested. We should only use S{0,m} for our internal XSD schema used in XDR validation. Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=51358Signed-off-by: 's avatarDamjan Jovanovic <damjan.jov@gmail.com> Signed-off-by: 's avatarNikolay Sivov <nsivov@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 5d869cad
...@@ -200,7 +200,7 @@ ...@@ -200,7 +200,7 @@
</xsd:annotation> </xsd:annotation>
<xsd:restriction base="xsd:decimal"> <xsd:restriction base="xsd:decimal">
<xsd:pattern value="([0-9]{,14})([.][0-9]{,4})?"/> <xsd:pattern value="([0-9]{0,14})([.][0-9]{0,4})?"/>
</xsd:restriction> </xsd:restriction>
</xsd:simpleType> </xsd:simpleType>
...@@ -539,7 +539,7 @@ ...@@ -539,7 +539,7 @@
</xsd:annotation> </xsd:annotation>
<xsd:restriction base="xsd:string"> <xsd:restriction base="xsd:string">
<xsd:pattern value="([0-9A-Fa-f]{4})([-]{,1}[0-9A-Fa-f]{4})*"/> <xsd:pattern value="([0-9A-Fa-f]{4})([-]{0,1}[0-9A-Fa-f]{4})*"/>
</xsd:restriction> </xsd:restriction>
</xsd:simpleType> </xsd:simpleType>
......
...@@ -1115,7 +1115,9 @@ static void test_regex(void) ...@@ -1115,7 +1115,9 @@ static void test_regex(void)
{ L"\\~", L"~", TRUE }, { L"\\~", L"~", TRUE },
{ L"\\uCAFE", L"\xCAFE", TRUE }, { L"\\uCAFE", L"\xCAFE", TRUE },
/* non-BMP character in surrogate pairs: */ /* non-BMP character in surrogate pairs: */
{ L"\\uD83D\\uDE00", L"\xD83D\xDE00", TRUE } { L"\\uD83D\\uDE00", L"\xD83D\xDE00", TRUE },
/* "x{,2}" is non-standard and only works on libxml2 <= v2.9.10 */
{ L"x{0,2}", L"x", FALSE }
}; };
int i; int i;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment