-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: Latest monty
release doesn't find regrep
matches on last line
#741
Comments
Works fine when ![]() I think due to changes in #730? |
Hi @kavanase happy new year and thanks for reporting this. However I believe this is expected behaviour (introduced in #712) to treat the last matched line ending character ( Reason being: according to the POSIX standard definition of "line":
In other words, a "correctly formatted" (agreeing with POSIX standard) text file should have every line ended with a line ending char including the last line (i.e. it should end with |
Hi @DanielYang59 , happy new year! Ah ok, thanks for linking the PR. I guess it could be an issue with incorrectly-formatted outputs, but I see that was discussed in #712 already. |
No worries at all.
Perhaps you could take my answer with a pinch of salt as I'm not 100% sure if "all text files should follow the POSIX standard" or it's just the "recommended way". Meanwhile we noticed some output file of LOBSTER may also have some similar behaviour Free feel to comment if you have any findings :) |
Email (Optional)
No response
Version
v2025.1.9
Which OS(es) are you using?
What happened?
In the latest release of

monty
,regrep
fails to match text which is on the last line of the file:Works fine with previous release:

Noticed by automated tests with ShakeNBreak
Code snippet
Log output
Code of Conduct
The text was updated successfully, but these errors were encountered: