From: Alex Coyte Date: Wed, 2 Aug 2017 03:36:24 +0000 (+1000) Subject: make ComponentRepeat::vacuous_everywhere() more accurate X-Git-Tag: v4.6.0^2~77 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d9e2c3daca396309f4fb72c22f7b075ff0cba1bd;p=thirdparty%2Fvectorscan.git make ComponentRepeat::vacuous_everywhere() more accurate --- diff --git a/src/parser/ComponentRepeat.cpp b/src/parser/ComponentRepeat.cpp index ff02703c..09f59d05 100644 --- a/src/parser/ComponentRepeat.cpp +++ b/src/parser/ComponentRepeat.cpp @@ -234,7 +234,7 @@ void ComponentRepeat::optimise(bool connected_to_sds) { } bool ComponentRepeat::vacuous_everywhere() const { - return !m_min; + return !m_min || sub_comp->vacuous_everywhere(); } bool ComponentRepeat::checkEmbeddedStartAnchor(bool at_start) const {