Skip to content

Commit e50123b

Browse files
author
Ketrel
committed
Change to the pattern matching for commands to hopefully better support other languages
1 parent eaee6c6 commit e50123b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

MinimapButtonFrameRedux/MinimapButtonFrameRedux.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -852,7 +852,8 @@ function bachMBF:ChatCommand(input)
852852
if not input or input:trim() == "" then
853853
InterfaceOptionsFrame_OpenToCategory(self.optionsFrame)
854854
else
855-
local startPos, endPos, firstWord, restOfString = strfind(input, "(%w+)[%s%p]*(.*)");
855+
--local startPos, endPos, firstWord, restOfString = strfind(input, "(%w+)[%s%p]*(.*)");
856+
local startPos, endPos, firstWord, restOfString = strfind(input, "([^%s]+)[%s%p]*(.*)");
856857
firstWord = strlower(firstWord)
857858

858859
if (firstWord == L["usage"]) then

0 commit comments

Comments
 (0)