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

Ruby doesn't allow forward references #102

Closed
Aloso opened this issue Nov 5, 2023 · 0 comments
Closed

Ruby doesn't allow forward references #102

Aloso opened this issue Nov 5, 2023 · 0 comments
Labels
bug Something isn't working C-compat Compatibility between regex flavors

Comments

@Aloso
Copy link
Member

Aloso commented Nov 5, 2023

Describe the bug

Fuzzing revealed that Ruby/oniguruma rejects forward references. The information here is either outdated or just wrong.

Pomsky should disallow forward references in the Ruby flavor.

To Reproduce

regex-test "(\k<x>(?<x>))+" -fruby

Pomsky expression:

:(::x? :x("a")){3}

Expected behavior

Pomsky should show an error message when targeting Ruby.

@Aloso Aloso added the bug Something isn't working label Nov 5, 2023
@Aloso Aloso closed this as completed in 89ae3d4 Nov 5, 2023
@Aloso Aloso added the C-compat Compatibility between regex flavors label Nov 30, 2024
@Aloso Aloso modified the milestone: v0.12 Nov 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working C-compat Compatibility between regex flavors
Projects
None yet
Development

No branches or pull requests

1 participant