bug fix: handle alternation involving a regexp
ending in \C* (or .* in Latin-1 mode) correctly
Bug only affected calls to Match, not FullMatch or PartialMatch.
R=rsc
CC=re2-dev
http://codereview.appspot.com/1690054
diff --git a/re2/testing/search_test.cc b/re2/testing/search_test.cc
index 419d7ba..588e5d5 100644
--- a/re2/testing/search_test.cc
+++ b/re2/testing/search_test.cc
@@ -264,6 +264,8 @@
{ "[^\\\\]+", "Aa\\" },
{ "[acegikmoqsuwy]+", "acegikmoqsuwyACEGIKMOQSUWY" },
+ // Former bugs.
+ { "a\\C*|ba\\C", "baba" },
};
TEST(Regexp, SearchTests) {