Skip to content

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

@vincentsking

Description

@vincentsking

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions