--- parser3/src/main/pa_string.C 2021/12/28 15:58:31 1.267 +++ parser3/src/main/pa_string.C 2023/09/26 20:49:10 1.269 @@ -1,8 +1,8 @@ /** @file Parser: string class. @see untalength_t.C. - Copyright (c) 2001-2020 Art. Lebedev Studio (http://www.artlebedev.com) - Author: Alexandr Petrosian (http://paf.design.ru) + Copyright (c) 2001-2023 Art. Lebedev Studio (http://www.artlebedev.com) + Authors: Konstantin Morshnev , Alexandr Petrosian */ #include "pa_string.h" @@ -12,7 +12,7 @@ #include "pa_charset.h" #include "pa_vregex.h" -volatile const char * IDENT_PA_STRING_C="$Id: pa_string.C,v 1.267 2021/12/28 15:58:31 moko Exp $" IDENT_PA_STRING_H; +volatile const char * IDENT_PA_STRING_C="$Id: pa_string.C,v 1.269 2023/09/26 20:49:10 moko Exp $" IDENT_PA_STRING_H; const String String::Empty; @@ -696,7 +696,7 @@ Table* String::match(VRegex* vregex, Row matches_count++; row_action(table, row, prestart - !action_was_executed, prefinish, poststart, postfinish, info); - if(!global) // last step + if(!global || poststart>=subject_length) // last step, avoid prestart++ after last char break; prestart=poststart;