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

Count is very inaccurate #51

Open
borissuska opened this issue May 18, 2020 · 3 comments
Open

Count is very inaccurate #51

borissuska opened this issue May 18, 2020 · 3 comments
Labels

Comments

@borissuska
Copy link

I've tried generate some dictionary and count shows me something like 150 items. Looks fine, but generated dictionary was 500 MB of size.

Then i found a problem. This result is correct:

$ exrex "[0-9]{4}" -c
10000

But this, which is basically the same is not:

$ exrex "[0-9]{2}[0-9]{2}" -c
200

Looks like there is sum instead of multiply between count([0-9]{2}).

My version of exrex is 0.10.5

@asciimoo asciimoo added the bug label May 18, 2020
@asciimoo
Copy link
Owner

Thanks for the report, this is definitely a bug.

@CrafterKolyan
Copy link

This is already fixed in exrex from master. Wouldn't you like to release current master branch so that count would work correctly?

@mr-bronson
Copy link

This was fixed by commit 5f615d0 on 8 Sep 2017, which was years before this issue was opened.

Wouldn't you like to release current master branch so that count would work correctly?

Yes, please!

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

No branches or pull requests

4 participants