-
Notifications
You must be signed in to change notification settings - Fork 12
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
Certain pattern string not accepted for RgxGen #53
Comments
Optimization. Don't create substring. Go char by char.
Refactoring. Idea inspections.
…rsing #53.square brackets range parsing
Dear @code-lucidal58. The issue have been resolved in a version 1.3-SNAPSHOT. You can use this version as explained in README or wait for version 1.3 release. Please let me know if there are any other issues. |
@curious-odd-man would it be possible for you to publish a non snapshot version before Dec 16th? |
@spacether sure. I'll do my best. I'll drop a comment in referenced issue once release is done. |
Thank you! I completely understand if you are too busy also. |
Describe the bug
New RgxGen object creation fails with StringIndexOutOfBoundsException, when passing the pattern string
^[a-zA-Z0-9-._:]*$
.To Reproduce
Steps to reproduce the behavior:
Creating a new RgxGen with the pattern string
^[a-zA-Z0-9-._:]*$
.RgxGen rgxGen = new RgxGen(pattern);
Expected behavior
Successfully create the object
Error Log
Environment (please complete the following information):
openjdk version "1.8.0_275"
OpenJDK Runtime Environment (AdoptOpenJDK)(build 1.8.0_275-b01)
OpenJDK 64-Bit Server VM (AdoptOpenJDK)(build 25.275-b01, mixed mode)
Code at tag 1.2 https://github.com/curious-odd-man/RgxGen/blob/1.2/src/main/java/com/github/curiousoddman/rgxgen/parsing/dflt/DefaultTreeBuilder.java
The text was updated successfully, but these errors were encountered: