We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When I debug the code, I found the the pattern regex is not working fine for me. Its converting everything to '-'. Code under invoicenet/acp/data.py
pattern = text pattern = re.sub(r"\p{Lu}", "X", pattern) pattern = re.sub(r"\p{Ll}", "x", pattern) pattern = re.sub(r"\p{N}", "0", pattern) pattern = re.sub(r"[^Xx0]", "-", pattern)
The text was updated successfully, but these errors were encountered:
Thank you for pointing this out! This was due to a python 2.7 to python 3.7 jump. Those regex used to work in python 2.7.
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
When I debug the code, I found the the pattern regex is not working fine for me. Its converting everything to '-'.
Code under invoicenet/acp/data.py
pattern = text
pattern = re.sub(r"\p{Lu}", "X", pattern)
pattern = re.sub(r"\p{Ll}", "x", pattern)
pattern = re.sub(r"\p{N}", "0", pattern)
pattern = re.sub(r"[^Xx0]", "-", pattern)
The text was updated successfully, but these errors were encountered: