mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-01-26 10:03:34 +03:00
small enhancement for quantifier range with min occurs of 0; fixes bug
* xmlregexp.c: small enhancement for quantifier range with min occurs of 0; fixes bug 425542. svn path=/trunk/; revision=3597
This commit is contained in:
parent
bd672bc5f9
commit
5657837103
@ -1,3 +1,8 @@
|
|||||||
|
Wed Apr 11 22:38:18 HKT 2007 William Brack <wbrack@mmm.com.hk>
|
||||||
|
|
||||||
|
* xmlregexp.c: small enhancement for quantifier range with
|
||||||
|
min occurs of 0; fixes bug 425542.
|
||||||
|
|
||||||
Fri Mar 30 14:41:57 CEST 2007 Daniel Veillard <daniel@veillard.com>
|
Fri Mar 30 14:41:57 CEST 2007 Daniel Veillard <daniel@veillard.com>
|
||||||
|
|
||||||
* xmlIO.c: applied change from Michael Day to avoid a problem when
|
* xmlIO.c: applied change from Michael Day to avoid a problem when
|
||||||
|
@ -1601,6 +1601,11 @@ xmlFAGenerateTransitions(xmlRegParserCtxtPtr ctxt, xmlRegStatePtr from,
|
|||||||
atom->quant = XML_REGEXP_QUANT_ONCE;
|
atom->quant = XML_REGEXP_QUANT_ONCE;
|
||||||
xmlRegStateAddTrans(ctxt, to, atom, to, -1, -1);
|
xmlRegStateAddTrans(ctxt, to, atom, to, -1, -1);
|
||||||
break;
|
break;
|
||||||
|
case XML_REGEXP_QUANT_RANGE:
|
||||||
|
if (atom->min == 0) {
|
||||||
|
xmlFAGenerateEpsilonTransition(ctxt, from, to);
|
||||||
|
}
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user