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

Code execution on file wiht CRLF does not work, fails to parse #228

Open
AddictArts opened this issue Mar 23, 2023 · 0 comments
Open

Code execution on file wiht CRLF does not work, fails to parse #228

AddictArts opened this issue Mar 23, 2023 · 0 comments

Comments

@AddictArts
Copy link

AddictArts commented Mar 23, 2023

Describe the bug
Code execution on file wiht CRLF does not work, fails to parse

To Reproduce
Create a text markdown file with CRLF vs LF as the line-endings.

Expected behavior
Execute the code block.

Desktop (please complete the following information):

  • OS: Windows 10, but CRLF can appear on *nix OS filesystems.

This is the guilty line of code

var re = regexp.MustCompile("(?s)(?:```|~~~)(\\w+)\n(.*?)\n(?:```|~~~)\\s?")

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

No branches or pull requests

1 participant