Skip to content

Commit ece73d6

Browse files
committed
Fix cleanup for removing redundant text code
1 parent 1ae7d4f commit ece73d6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Modifiers/RedundantText.lua

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@
22
local addonTable = select(2, ...)
33

44
local function Clean(text)
5-
return "^" .. text:gsub("([%^$().%[%]*+-?)])", "%%%1"):gsub("%%s", "(.-)"):gsub("%%d", "(.-)")
5+
return "^" .. text
6+
:gsub("([%^%$%(%)%%%.%[%]%*%+%-%?])", "%%%1")
7+
:gsub("%%s", "(.-)")
8+
:gsub("%%d", "(.-)")
69
end
710

811
local lootPatterns = {

0 commit comments

Comments
 (0)