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

list_filth fails to detect CreditCardFilth with beg 0 #144

Closed
JParramore opened this issue Jan 20, 2023 · 1 comment · May be fixed by #153
Closed

list_filth fails to detect CreditCardFilth with beg 0 #144

JParramore opened this issue Jan 20, 2023 · 1 comment · May be fixed by #153

Comments

@JParramore
Copy link

list_filth fails to detect CreditCardFilth when the credit card number begins at the start of the string.

cc number beginning index 0

scrubadub.list_filth('5283156486036251 5283156486036251')
# [<CreditCardFilth text='5283156486036251' beg=17 end=33 detector_name='credit_card' locale='en_US'>]

cc number padded

scrubadub.list_filth(' 5283156486036251 5283156486036251')
# [<CreditCardFilth text='5283156486036251' beg=1 end=17 detector_name='credit_card' locale='en_US'>, <CreditCardFilth text='5283156486036251' beg=18 end=34 detector_name='credit_card' locale='en_US'>]
@thomasbird
Copy link
Member

Great, thanks for the report! This should be fixed in the soon to be released v2.0.2.

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

Successfully merging a pull request may close this issue.

2 participants