mirror of
https://gitlab.gnome.org/GNOME/libxml2
synced 2025-03-28 21:33:13 +00:00
parent
d9e1198c61
commit
145170125a
3
result/regexp/issue370
Normal file
3
result/regexp/issue370
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
Regexp: [A-Za-[G]]
|
||||||
|
G: Fail
|
||||||
|
a: Ok
|
3
test/regexp/issue370
Normal file
3
test/regexp/issue370
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
=>[A-Za-[G]]
|
||||||
|
G
|
||||||
|
a
|
@ -5166,7 +5166,7 @@ xmlFAParseCharRange(xmlRegParserCtxtPtr ctxt) {
|
|||||||
}
|
}
|
||||||
NEXTL(len);
|
NEXTL(len);
|
||||||
cur = CUR;
|
cur = CUR;
|
||||||
if ((cur != '-') || (NXT(1) == ']')) {
|
if ((cur != '-') || (NXT(1) == '[') || (NXT(1) == ']')) {
|
||||||
xmlRegAtomAddRange(ctxt, ctxt->atom, ctxt->neg,
|
xmlRegAtomAddRange(ctxt, ctxt->atom, ctxt->neg,
|
||||||
XML_REGEXP_CHARVAL, start, end, NULL);
|
XML_REGEXP_CHARVAL, start, end, NULL);
|
||||||
return;
|
return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user