Better condition

This commit is contained in:
Danila Kutenin 2019-05-05 12:34:43 +03:00
parent 451407a829
commit e531348e12

View File

@ -233,7 +233,7 @@ void OptimizedRegularExpressionImpl<thread_safe>::analyze(
}
/// If prefix is small, it won't be chosen
if (max_length == 0)
if (max_length < MIN_LENGTH_FOR_STRSTR)
{
for (Substrings::const_iterator it = trivial_substrings.begin(); it != trivial_substrings.end(); ++it)
{