When I run lua update.lua with Lua 5.3.4 I get the following error message:
lua: sites.lua:233: invalid escape sequence near ''<a href="fileinfo.php\?'
stack traceback:
[C]: in function 'dofile'
update.lua:11: in main chunk
[C]: in ?
Can be fixed by escaping the backslash. Line 233 in sites.lua would be
local id, name = tr:match('<a href="fileinfo.php}\\?[^"]*id=(%d+)[^"]*">(.-)</a>') then.
This doesn't seem to affect Lua 5.1 negatively, as far as I can see.
Disclaimer: I have only tested update.lua so far.
Edit: I forgot that I fixed another string earlier: line 94 of sites.lua the backslash has to be removed. It then reads:
if url:find("/downloads/landing\.php") then
When I run
lua update.lua
with Lua 5.3.4 I get the following error message:Can be fixed by escaping the backslash. Line 233 in sites.lua would be
local id, name = tr:match('<a href="fileinfo.php}\\?[^"]*id=(%d+)[^"]*">(.-)</a>')
then.This doesn't seem to affect Lua 5.1 negatively, as far as I can see.
Disclaimer: I have only tested update.lua so far. Edit: I forgot that I fixed another string earlier: line 94 of sites.lua the backslash has to be removed. It then reads:
if url:find("/downloads/landing\.php") then