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
def strip_notprintable(myStr): return ''.join(filter(lambda x: x in string.printable, myStr))
to compatible with chinese characters, this function should change to
def strip_notprintable(line): # Strip non-ASCII characters line = re.sub(r'[\x00-\x1f\x7f-\x9f]', '', line) # Strip non-printable characters line = ''.join(filter(lambda x: x.isprintable(), line)) return line
The text was updated successfully, but these errors were encountered:
#2 proves that there is a bad commit in md_mermaid
Sorry, something went wrong.
No branches or pull requests
def strip_notprintable(myStr):
return ''.join(filter(lambda x: x in string.printable, myStr))
to compatible with chinese characters, this function should change to
def strip_notprintable(line):
# Strip non-ASCII characters
line = re.sub(r'[\x00-\x1f\x7f-\x9f]', '', line)
# Strip non-printable characters
line = ''.join(filter(lambda x: x.isprintable(), line))
return line
The text was updated successfully, but these errors were encountered: