Content deleted Content added
more realistic examples |
tags in code tags? |
||
Line 6:
language = function (subtags, key)
if not subtags[key] then return nil end
return ("%s: <code>%s</code>"):format(key, subtags[key] or '')
end,
variant = function (subtags, key)
if not subtags[key] then return nil end
return ("%s: <code>%s</code>"):format(
key,
type(subtags[key]) == "table" and table.concat(subtags[key], ", ")
Line 20:
end
return ("error: %s at
:format(subtags.error, subtags.invalid or "???")
end,
Line 90:
function (self, IETF_code, expected)
self:equals(
("<code>%s</code>"):format(IETF_code),
show_parsed_subtags(parse_IETF(IETF_code)),
show_parsed_subtags(expected))
|