mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-07-29 11:41:22 +03:00
apply patch from Andrew Tosh to fix behaviour when '.' is used in a
* xmlregexp.c: apply patch from Andrew Tosh to fix behaviour when '.' is used in a posCharGroup * test/schemas/poschargrp0_0.* result/schemas/poschargrp0_0_0*: added the test to the regression suite Daniel svn path=/trunk/; revision=3687
This commit is contained in:
@ -1,3 +1,10 @@
|
||||
Fri Feb 8 11:33:15 CET 2008 Daniel Veillard <daniel@veillard.com>
|
||||
|
||||
* xmlregexp.c: apply patch from Andrew Tosh to fix behaviour
|
||||
when '.' is used in a posCharGroup
|
||||
* test/schemas/poschargrp0_0.* result/schemas/poschargrp0_0_0*:
|
||||
added the test to the regression suite
|
||||
|
||||
Fri Feb 8 10:54:09 CET 2008 Daniel Veillard <daniel@veillard.com>
|
||||
|
||||
* dict.c: applied patch from Florent Guilian to remove an
|
||||
|
1
result/schemas/poschargrp0_0_0
Normal file
1
result/schemas/poschargrp0_0_0
Normal file
@ -0,0 +1 @@
|
||||
./test/schemas/poschargrp0_0.xml validates
|
0
result/schemas/poschargrp0_0_0.err
Normal file
0
result/schemas/poschargrp0_0_0.err
Normal file
2
test/schemas/poschargrp0_0.xml
Normal file
2
test/schemas/poschargrp0_0.xml
Normal file
@ -0,0 +1,2 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<testElem xmlns="http://obj-sys.com/mySchema">value</testElem>
|
14
test/schemas/poschargrp0_0.xsd
Normal file
14
test/schemas/poschargrp0_0.xsd
Normal file
@ -0,0 +1,14 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<xs:schema targetNamespace="http://obj-sys.com/mySchema"
|
||||
xmlns:elementFormDefault="qualified"
|
||||
xmlns="http://obj-sys.com/mySchema"
|
||||
xmlns:xs="http://www.w3.org/2001/XMLSchema">
|
||||
<xs:element name="testElem">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:pattern value="[^.:/]+"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
|
||||
</xs:schema>
|
@ -5052,7 +5052,7 @@ xmlFAParseCharRange(xmlRegParserCtxtPtr ctxt) {
|
||||
static void
|
||||
xmlFAParsePosCharGroup(xmlRegParserCtxtPtr ctxt) {
|
||||
do {
|
||||
if ((CUR == '\\') || (CUR == '.')) {
|
||||
if (CUR == '\\') {
|
||||
xmlFAParseCharClassEsc(ctxt);
|
||||
} else {
|
||||
xmlFAParseCharRange(ctxt);
|
||||
|
Reference in New Issue
Block a user