We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The optional "a" in the first pattern seems to confuse the generator to miss the "b". Adding brackets (2nd pattern) avoids the error.
import com.github.curiousoddman.rgxgen.RgxGen; public class MyClass { public static void main(String args[]) { // "": WRONG System.out.println(new RgxGen("a?b|c").iterateUnique().next()); // "b": OK System.out.println(new RgxGen("(a?b)|c").iterateUnique().next()); } }
The text was updated successfully, but these errors were encountered:
#61. Iterate Unique with optional char produces wrong result
83529a5
Test added.
52136a3
Fixed. Sequence was incorrectly visited for unique generation.
c844d3c
Cleanup.
Merge pull request #62 from curious-odd-man/#61.IterateUniqueBug
289b3f0
#61.iterate unique bug
curious-odd-man
Successfully merging a pull request may close this issue.
The optional "a" in the first pattern seems to confuse the generator to miss the "b". Adding brackets (2nd pattern) avoids the error.
The text was updated successfully, but these errors were encountered: