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:
HW
2012-06-03 01:52:16 +02:00
parent b07470535f
commit e35339a398
6 changed files with 18 additions and 18 deletions

View File

@@ -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