andgineer / TRegExpr

Regular expressions (regex), pascal.
https://regex.sorokin.engineer/en/latest/
MIT License
174 stars 62 forks source link

Fix overflow in IsPartFixedLength / remove incorrect assert. #356

Closed User4martin closed 10 months ago

User4martin commented 10 months ago

2 small fixes / see commit description

User4martin commented 10 months ago

The assert is wrong. In a branch the next pointer does point to the end of the branch.

However the code is otherwise correct. I.e. it should do s:=next. The assert was merely testing a temp value that was never used.