Skip to content

Commit

Permalink
Update Automation.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
noname08662 authored Jan 16, 2025
1 parent 20112a2 commit cb21c2b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Modules/Blizzard/Automation.lua
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,8 @@ local function parseCollectionString(conditions)
local pair, filterName, operator, value, amount = match(condition, '(([^%s%p]*)@(%p*)([^%s%p]*)@*([+%d]*))')
if filterName and filter[filterName] and value then
local formattedCondition = formatCondition(filterName, operator ~= '' and operator or '==',
value, amount ~= '' and (tonumber(amount) or format("'%s'", amount or 1)) or 1)
formattedConditions = gsub(formattedConditions, gsub(pair, "([%(%)%.%%%+%-%*%?%[%^%$])", "%%%1"), formattedCondition)
value, amount ~= '' and (tonumber(amount) or format('"%s"', amount or 1)) or 1)
formattedConditions = gsub(formattedConditions, gsub(pair, '([%(%)%.%%%+%-%*%?%[%^%$])', '%%%1'), formattedCondition, 1)
else
core:print('FORMATTING', L["Automations"])
return
Expand Down

0 comments on commit cb21c2b

Please sign in to comment.