Skip to content
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

Some problems using the $ end anchor #3

Closed
vmagnin opened this issue Dec 17, 2022 · 2 comments
Closed

Some problems using the $ end anchor #3

vmagnin opened this issue Dec 17, 2022 · 2 comments

Comments

@vmagnin
Copy link

vmagnin commented Dec 17, 2022

Considering the character(*), parameter :: text = 'table football' string in the test\tests.f90 file, the regex ll$ works,
but l$ returns the two final ll
and l.$ crashes:

At line 88 of file test/tests.f90
Fortran runtime error: Substring out of bounds: upper bound (16) exceeds string length (14)

Error termination. Backtrace:
#0  0x7f9475023ad0 in ???
#1  0x7f9475024649 in ???
#2  0x7f9475024c46 in ???
#3  0x55fe89e9142a in test_bracket_space
        at test/tests.f90:88
#4  0x55fe89e91765 in tests
        at test/tests.f90:25
#5  0x55fe89e91edd in main
        at test/tests.f90:2
<ERROR> Execution failed for object " regex_tests "
<ERROR>*cmd_run*:stopping due to failed executions
STOP 1
@perazz
Copy link
Owner

perazz commented Dec 18, 2022

This problem seems to affect the parent library too: I've filed that here, now investigating.

@perazz
Copy link
Owner

perazz commented Dec 18, 2022

OK apparently fixed by the latest commit. Pattern match length was not reset every time the search advanced. I'll propagate this to a pull request in tiny-regex-c too

@perazz perazz closed this as completed Dec 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants