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

Lookahead breaks pattern #106

Open
alturkovic opened this issue Mar 15, 2024 · 1 comment
Open

Lookahead breaks pattern #106

alturkovic opened this issue Mar 15, 2024 · 1 comment
Assignees
Labels
bug Something isn't working
Milestone

Comments

@alturkovic
Copy link

Describe the bug
It seems like negative lookahead breaks the pattern generated by RgxGen.
I am aware that lookaheads have limited support but #63 mentioned in README/limitations does not seem like the same issue to me.
Reporting for awareness.

To Reproduce
Steps to reproduce the behavior:

  1. With regex pattern '^(?!(False|True)$)[a-zA-Z_][\w]*$'
  2. Use RgxGen.parse(pattern).generate()
  3. Get results such as: yl[>B4BemOeLW2QQsNUPKtExdhKDwkroNwAptvhYx

Expected behavior
Any alphanumeric+underscore string starting with a letter or _ that is not True or False.

Environment (please complete the following information):

  • OS: iOS
  • JDK/JRE version = 17.0.8.1-tem
  • RgxGen Version = 2.0
@alturkovic alturkovic added the bug Something isn't working label Mar 15, 2024
@curious-odd-man curious-odd-man added this to the Version 2.1 milestone Mar 16, 2024
@curious-odd-man
Copy link
Owner

Thank you for reporting this.

Adding some examples for myself:
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants