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
The code block regex allows for a DoS. Can be reproduced with ~100 spaces.
Reproduction in regex debugger.
Reproduce in the playground:
text text
The text was updated successfully, but these errors were encountered:
This is a serious issue, I've been seeing it as well. Any workaround @jasisk until this gets answered?
Sorry, something went wrong.
I've been removing the leading whitespace, using a regex:
const sanitizedString = inputString.replace(/\s+/g, " ");
Also had the same problem. I've been using.
const sanitizedString = inputString.replace(/^ *$/gm, '\n')
This will replace lines that have just spaces on it with a new line
No branches or pull requests
The code block regex allows for a DoS. Can be reproduced with ~100 spaces.
Reproduction in regex debugger.
Reproduce in the playground:
The text was updated successfully, but these errors were encountered: