yuri / sputnik

An Extensible Wiki/CMS in Lua

Home Page:http://spu.tnik.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

invalid escape sequence \_

davidm opened this issue · comments

"_" is not a valid escape sequence (raises an error in 5.2):

title = string.gsub(title or new_title or page_name, "_", "\_"),

Sputnik isn't written for Lua 5.2, it's written for Lua 5.1. It is likely there are many more changes than this that would be required to get it running cleanly and easily on 5.2. I'm sure we would be open to patches in order to create a version that is compatible with both versions.

"_" is not a valid escape sequence in Lua 5.1 either, although no error is raised about it. LuaJIT 2.0, Lua 5.2, and Metalua raise errors about it. (I found this on a scan of all source code in the LuaDist repo, with no need myself to run sputnik on 5.2)