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

you don't seem to support non capture groups #49

Open
vincentsking opened this issue Jul 19, 2019 · 0 comments
Open

you don't seem to support non capture groups #49

vincentsking opened this issue Jul 19, 2019 · 0 comments

Comments

@vincentsking
Copy link

vincentsking commented Jul 19, 2019

like "color=(?:red|green|blue)"

you end up generating ?:red instead of just red

@ val test = new Generex("color=(?:red|green|blue)") 
test: Generex = com.mifmif.common.regex.Generex@459d81f1

@ test.random 
res36: String = "color=green"

@ test.random 
res37: String = "color=?:red"    <<<---- BUG (should be color=red)

@ test.random 
res38: String = "color=blue"

https://regex101.com/r/XelPbS/2

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

1 participant