Skip to content

Commit

Permalink
Fix matching empty string in ansi-char mode. Condition was wrongly IF…
Browse files Browse the repository at this point in the history
…DEFED Issue andgineer#343
  • Loading branch information
Martin committed Nov 16, 2023
1 parent 49d71c0 commit e4fcc06
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/regexpr.pas
Original file line number Diff line number Diff line change
Expand Up @@ -6451,9 +6451,9 @@ function TRegExpr.ExecPrimProtected(AOffset: Integer; ASlowChecks,
raEOL: Ptr := fInputEnd;
end;
{$IFDEF UseFirstCharSet}
{$IFDEF UnicodeRE}
if (Ptr < fInputEnd) and (Ord(Ptr^) <= $FF) then
{$ENDIF}
if (Ptr < fInputEnd)
{$IFDEF UnicodeRE} and (Ord(Ptr^) <= $FF) {$ENDIF}
then
if not FirstCharArray[Byte(Ptr^)] then
Exit;
{$ENDIF}
Expand Down

0 comments on commit e4fcc06

Please sign in to comment.