From dc3f75a0e285b69372a98937b853519f3196dbe0 Mon Sep 17 00:00:00 2001 From: James Whitehead II Date: Sat, 20 Jul 2013 14:36:35 +0200 Subject: [PATCH] Fix zone searching in commandlines --- TomTom.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TomTom.lua b/TomTom.lua index 19fd592..c3ef0dc 100755 --- a/TomTom.lua +++ b/TomTom.lua @@ -1170,7 +1170,7 @@ local wrongseparator = "(%d)" .. (tonumber("1.1") and "," or ".") .. "(%d)" local rightseparator = "%1" .. (tonumber("1.1") and "." or ",") .. "%2" -- Make comparison only lowercase letters and numbers -local function lowergsub(s) return s:lower():gsub("^[%a%d]", "") end +local function lowergsub(s) return s:lower():gsub("[^%a%d]", "") end SlashCmdList["TOMTOM_WAY"] = function(msg) msg = msg:gsub("(%d)[%.,] (%d)", "%1 %2"):gsub(wrongseparator, rightseparator) -- 1.7.9.5