]> git.ipfire.org Git - thirdparty/vectorscan.git/commitdiff
make ComponentRepeat::vacuous_everywhere() more accurate
authorAlex Coyte <a.coyte@intel.com>
Wed, 2 Aug 2017 03:36:24 +0000 (13:36 +1000)
committerMatthew Barr <matthew.barr@intel.com>
Mon, 21 Aug 2017 01:18:54 +0000 (11:18 +1000)
src/parser/ComponentRepeat.cpp

index ff02703cd288a8f1ceaaae9f2f67d5df2d567813..09f59d05ec8175c97dca5e893fdcb269f7dc4f2c 100644 (file)
@@ -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 {