mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
fixed wrong escape sequences in strings
again, LuaJIT will choke on these, Lua-5.1.n did just ignore them
This commit is contained in:
@@ -145,7 +145,7 @@ function SplitString(text)
|
||||
local words = {}
|
||||
local word = ""
|
||||
for uchar in string.gfind(text, "([%z\1-\127\194-\244][\128-\191]*)") do
|
||||
if uchar == "/" or uchar == " " or uchar == "-" or uchar == "_" or uchar == "\." then
|
||||
if uchar == "/" or uchar == " " or uchar == "-" or uchar == "_" or uchar == "." then
|
||||
words[#words+1] = word .. uchar
|
||||
word = ""
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user