Skip to content

Commit

Permalink
fix(doc): allow boolean for storeMatch1 in match storage options (#…
Browse files Browse the repository at this point in the history
…4090)

allow boolean for `storeMatch1` in match storage options
  • Loading branch information
hjpalpha authored Mar 26, 2024
1 parent 2280863 commit 1a7ed01
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/match2/commons/match.lua
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ function Match.makeEncodedJson(matchArgs)
end

---@param matchRecords table[]
---@param options {bracketId: string?, storeMatch1: string?, storeMatch2: string?, storePageVar: string?}?
---@param options {bracketId: string?, storeMatch1: string|boolean?, storeMatch2: string?, storePageVar: string?}?
function Match.storeMatchGroup(matchRecords, options)
options = options or {}
options = {
Expand Down Expand Up @@ -124,7 +124,7 @@ end

---Stores a single match from a match group. Used by standalone match pages.
---@param match table[]
---@param options {bracketId: string?, storeMatch1: string?, storeMatch2: string?, storePageVar: string?}?
---@param options {bracketId: string?, storeMatch1: string|boolean?, storeMatch2: string?, storePageVar: string?}?
function Match.store(match, options)
Match.storeMatchGroup({match}, type(options) == 'table' and options or nil)
end
Expand Down

0 comments on commit 1a7ed01

Please sign in to comment.