fixed bug with autocompletion and special characters
This commit is contained in:
+3
-1
@@ -9,7 +9,9 @@ function fuzzy(input)
|
|||||||
local uppercase_input = strupper(input)
|
local uppercase_input = strupper(input)
|
||||||
local pattern = '(.*)'
|
local pattern = '(.*)'
|
||||||
for i=1,strlen(uppercase_input) do
|
for i=1,strlen(uppercase_input) do
|
||||||
pattern = pattern .. string.sub(uppercase_input, i, i) .. '(.*)'
|
if strfind(string.sub(uppercase_input, i, i), '%a') then
|
||||||
|
pattern = pattern .. string.sub(uppercase_input, i, i) .. '(.*)'
|
||||||
|
end
|
||||||
end
|
end
|
||||||
return function(item_name)
|
return function(item_name)
|
||||||
local match = { string.find(strupper(item_name), pattern) }
|
local match = { string.find(strupper(item_name), pattern) }
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
AuxVersion = '2.2.21'
|
AuxVersion = '2.2.22'
|
||||||
AuxAuthors = 'shirsig; Zerf; Zirco (Auctionator); Nimeral (Auctionator backport)'
|
AuxAuthors = 'shirsig; Zerf; Zirco (Auctionator); Nimeral (Auctionator backport)'
|
||||||
|
|
||||||
local lastRightClickAction = GetTime()
|
local lastRightClickAction = GetTime()
|
||||||
|
|||||||
Reference in New Issue
Block a user