From 668f30205f48b9f2592021fcc873ff92858d7989 Mon Sep 17 00:00:00 2001 From: James Whitehead II Date: Mon, 24 Jan 2011 09:04:02 +0000 Subject: [PATCH] Don't strip spaces from zone name in slash cmd Previously the fuzzy matching was using a gsub on %L to "", which removed all of the spaces from the user's input. This no longer works with two word zone names. --- TomTom.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TomTom.lua b/TomTom.lua index 8a398c5..d9eb8ea 100755 --- a/TomTom.lua +++ b/TomTom.lua @@ -1157,7 +1157,7 @@ SlashCmdList["TOMTOM_WAY"] = function(msg) -- Find a fuzzy match for the zone local matches = {} - zone = zone:lower():gsub("[%L]", "") + zone = zone:lower():gsub("[^%l%s%d]", "") for name,mapId in pairs(nameToMapId) do local lname = name:lower() -- 1.7.9.5