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

Non valid strings generated #47

Open
robert2411 opened this issue Feb 28, 2019 · 1 comment
Open

Non valid strings generated #47

robert2411 opened this issue Feb 28, 2019 · 1 comment

Comments

@robert2411
Copy link

Used version: 1.0.2

Example code to reproduce:

        SystemPreferenceList out = new SystemPreferenceList();
        Generex generex = new Generex("(^$)|(^[a-zA-Z0-9_-]+(\\.[a-zA-Z0-9_-]+)*$)");
        System.out.println(generex.random());

Generated string: ^_XC-5o-K-.X.6-0$

This string doesnt match the regex
Regex online to validate:
https://regex101.com/r/XelPbS/1

@fuatkarakus
Copy link

Used version: 1.0.1

I have same issue, just want to give charset UTF-8, any chances?

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

2 participants