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
I get an error on the regexp ERROR: PCRE compilation error: \ at end of pattern for the literate part when running LiveServer.jl from several windows systems.
the Regex(literate) throws the error (at what letter exactly is a bit surprisingly different on different windows machines / paths we tested... but haven't systematically tested it either).
I'm not entirely sure how to fix it, because I dont fully understand the function in L165. Maybe one can escape the sequence better?
PS: You can try that Regex("c:\\Foo\\") throws an error, or on windows machine Regex(abspath(".")) - note that sometimes it only complains about the last "\", but if you are unlikely and hit some special escaped things like "\F", it fails earlier ;)
The text was updated successfully, but these errors were encountered:
Thanks very much for looking into it. Right now is super stressful, I will try to keep a tab on this and if time is right I might come back to this. But right now it is too much for me to do an PR.
I get an error on the regexp
ERROR: PCRE compilation error: \ at end of pattern
for the literate part when running LiveServer.jl from several windows systems.The reasons seems to lay in:
https://github.com/tlienart/LiveServer.jl/blob/eec3d5b23d16e296ba55c4f99084c1814bee5165/src/utils.jl#L249
which translates something like
literate="Foo"
toc:\\Foo\\
. Unfortunately, this is not a correct regular expression, and thus later athttps://github.com/tlienart/LiveServer.jl/blob/eec3d5b23d16e296ba55c4f99084c1814bee5165/src/utils.jl#L165
the
Regex(literate)
throws the error (at what letter exactly is a bit surprisingly different on different windows machines / paths we tested... but haven't systematically tested it either).I'm not entirely sure how to fix it, because I dont fully understand the function in L165. Maybe one can escape the sequence better?
PS: You can try that
Regex("c:\\Foo\\")
throws an error, or on windows machineRegex(abspath("."))
- note that sometimes it only complains about the last "\", but if you are unlikely and hit some special escaped things like "\F", it fails earlier ;)The text was updated successfully, but these errors were encountered: