Closed krakentoa closed 7 years ago
Good spot, this line needs to url-encode gitpath.
Of course, obviously computercraft does not provide such a url-escape function...
But to fix this issue, I think gitpath:gsub(' ', '%20')
would suffice?
Worked after escaping the%
: gitpath:gsub(' ', '%%20')
.
Thanks!
That doesn't make much sense - why does it need escaping?
I've committed without the double %% for now, because I really don't understand why two are needed
Oh, I got an error of some kind without it. From http://lua-users.org/wiki/PatternsTutorial
Patterns have a few pre-defined classes, use them as "%x", where "x" is the letter identifying the class:
This is not a pattern. It's also not a format string. So % should have no special meaning?
Can you tell me the error you get?
I remember now it had something to do with an invalid capture. I also found the actual link that gave me the solution: http://stackoverflow.com/questions/7210581/lua-escaping-literal-inside-string-gsub-and-the-capture-2 I don't have minecraft installed right now.
Example: https://github.com/mpoegel/ComputerCraft-Scripts