You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for this awesome package. Very powerful and easy to use!
Seems like the regex does not catch windows line breaks. As a piece of clear evidence that computers are consipiring against us, the method used in testing serves as a workaround :/
julia> mdstr =""" md\"\"\" bla\"\"\""""
julia>mktempdir() do path
testfile =joinpath(path,"testfile.md")
write(testfile, mdstr)
match(r"^md\"\"\"$\R^(\X*?)\R^\"\"\"$"m, read(testfile, String))
endRegexMatch("md\"\"\"\nbla\n\"\"\"", 1="bla")
# This file is created using "new file" in VS code
julia>read("mdtest.jl", String)
"md\"\"\"\r\nbla\r\n\"\"\""
julia>match(r"^md\"\"\"$\R^(\X*?)\R^\"\"\"$"m, read("mdtest.jl", String))
The regex works when tested in Rubular. Replacing \R with (?:\r?\n) does nothing, but removing the begin/end of line markers makes it work.
This seems to be a way to create windows linebreaks inside Julia:
julia> mdstr ="md\"\"\"\r\nbla\r\n\"\"\"""md\"\"\"\r\nbla\r\n\"\"\""
julia> mdstr ==read("mdtest.jl", String)
true
julia>mktempdir() do path
testfile =joinpath(path,"testfile.md")
write(testfile, mdstr)
match(r"^md\"\"\"$\R^(\X*?)\R^\"\"\"$"m, read(testfile, String))
end
The text was updated successfully, but these errors were encountered:
Thanks for this awesome package. Very powerful and easy to use!
Seems like the regex does not catch windows line breaks. As a piece of clear evidence that computers are consipiring against us, the method used in testing serves as a workaround :/
The regex works when tested in Rubular. Replacing
\R
with(?:\r?\n)
does nothing, but removing the begin/end of line markers makes it work.This seems to be a way to create windows linebreaks inside Julia:
The text was updated successfully, but these errors were encountered: