Skip to content

Commit

Permalink
Merge pull request #1415 from FarFigNewGut/for_screech
Browse files Browse the repository at this point in the history
[foreach.lic] correct filter regex capture groups
  • Loading branch information
mrhoribu authored Jan 9, 2024
2 parents f887941 + 95daa87 commit 8414209
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions scripts/foreach.lic
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,11 @@
game: Gemstone
tags: utility, inventory,
required: Lich > 5.0.1
version: 1.0.6
version: 1.0.7
changelog:
1.0.7 (2024-01-09)
Fix regex match for filter causing all queries to default to TYPE
1.0.6 (2024-01-06)
Remove experimental feature, no longer used
1.0.5 (2024-01-05)
Expand Down Expand Up @@ -1616,7 +1618,7 @@ module ForeachScript
end

filter_matches = Regexp.last_match
filter_attr = (filter_matches[1].downcase or 'type')
filter_attr = (filter_matches[2].downcase or 'type')
filter_value = filter_matches[3]
position = (filter_matches[1] or filter_matches[4])
targets = filter_matches[5]
Expand Down

0 comments on commit 8414209

Please sign in to comment.