1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-07-30 22:43:14 +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:
William M. Brack
2007-04-11 14:33:46 +00:00
parent bd672bc5f9
commit 5657837103
2 changed files with 10 additions and 0 deletions

View File

@ -1601,6 +1601,11 @@ xmlFAGenerateTransitions(xmlRegParserCtxtPtr ctxt, xmlRegStatePtr from,
atom->quant = XML_REGEXP_QUANT_ONCE;
xmlRegStateAddTrans(ctxt, to, atom, to, -1, -1);
break;
case XML_REGEXP_QUANT_RANGE:
if (atom->min == 0) {
xmlFAGenerateEpsilonTransition(ctxt, from, to);
}
break;
default:
break;
}