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

Support for case-insensitive string generation. #47

Closed
nheitz opened this issue Nov 3, 2020 · 4 comments · Fixed by #48
Closed

Support for case-insensitive string generation. #47

nheitz opened this issue Nov 3, 2020 · 4 comments · Fixed by #48
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@nheitz
Copy link

nheitz commented Nov 3, 2020

This library looks like it's going to fulfill a need I have in certain cucumber tests rather nicely. Primarily I am interested in the "Not matching" string functionality...but is there any way to indicate that the constructor argument for "regex" shuld be used in a case insensitive way?

@curious-odd-man
Copy link
Owner

Hello Nicholas! Thank you for your question.

Unfortunately there is no "case insensitive" option currently. I think I can implement this in a nearest future.

@curious-odd-man curious-odd-man self-assigned this Nov 3, 2020
@curious-odd-man curious-odd-man changed the title QUERY: How to utilise "case insensitive" regex flag? Support for case-insensitive string generation. Nov 3, 2020
@curious-odd-man curious-odd-man added the enhancement New feature or request label Nov 3, 2020
@curious-odd-man curious-odd-man added this to the Version 1.3 milestone Nov 3, 2020
curious-odd-man added a commit that referenced this issue Nov 5, 2020
Potential data for test cases.
@curious-odd-man curious-odd-man linked a pull request Nov 5, 2020 that will close this issue
curious-odd-man added a commit that referenced this issue Nov 7, 2020
curious-odd-man added a commit that referenced this issue Nov 7, 2020
Implemented unit tests.
curious-odd-man added a commit that referenced this issue Nov 7, 2020
Implemented partially.
Only UniqueGenerationVisitor left.
curious-odd-man added a commit that referenced this issue Nov 7, 2020
WIP. Implementation for Unique Generator.
curious-odd-man added a commit that referenced this issue Nov 8, 2020
WIP. Implementation for Unique Generator.
curious-odd-man added a commit that referenced this issue Nov 8, 2020
curious-odd-man added a commit that referenced this issue Nov 9, 2020
curious-odd-man added a commit that referenced this issue Nov 9, 2020
Todos transferred to refactoring task.
curious-odd-man added a commit that referenced this issue Nov 9, 2020
@curious-odd-man
Copy link
Owner

Hello @nheitz. You can try SNAPSHOT release for the case-insensitive generation. The release of version 1.3 (including this implementation is planned later this year).

@curious-odd-man
Copy link
Owner

Ah. btw. To enable case insensitive matching use:

        RgxGen rgxGen = new RgxGen("your awesome pattern");
        RgxGenProperties properties = new RgxGenProperties();
        RgxGenOption.CASE_INSENSITIVE.setInProperties(properties, true);
        rgxGen.setProperties(properties);

@nheitz
Copy link
Author

nheitz commented Nov 20, 2020

amazing. Thank you very much.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants