Skip to content

Commit

Permalink
fix spelling
Browse files Browse the repository at this point in the history
  • Loading branch information
Rathoz committed Oct 17, 2024
1 parent c095039 commit f16d93d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions standard/links/commons/links.lua
Original file line number Diff line number Diff line change
Expand Up @@ -397,9 +397,9 @@ end
---@param platform string
---@param id string?
---@param variant string?
---@param fallbaseToBase boolean? #defaults to true
---@param fallbackToBase boolean? #defaults to true
---@return string
function Links.makeFullLink(platform, id, variant, fallbaseToBase)
function Links.makeFullLink(platform, id, variant, fallbackToBase)
if id == nil or id == '' then
return ''
end
Expand All @@ -414,7 +414,7 @@ function Links.makeFullLink(platform, id, variant, fallbaseToBase)

local prefix = prefixData[variant]
local suffix = suffixData[variant]
if fallbaseToBase ~= false then
if fallbackToBase ~= false then
prefix = prefix or prefixData[1]
suffix = suffix or suffixData[1]
end
Expand All @@ -428,11 +428,11 @@ end

---@param links {[string]: string}
---@param variant string?
---@param fallbaseToBase boolean? #defaults to true
---@param fallbackToBase boolean? #defaults to true
---@return {[string]: string}
function Links.makeFullLinksForTableItems(links, variant, fallbaseToBase)
function Links.makeFullLinksForTableItems(links, variant, fallbackToBase)
return Table.map(links, function(key, item)
return key, Links.makeFullLink(Links.removeAppendedNumber(key), item, variant, fallbaseToBase)
return key, Links.makeFullLink(Links.removeAppendedNumber(key), item, variant, fallbackToBase)
end)
end

Expand Down

0 comments on commit f16d93d

Please sign in to comment.