Content deleted Content added
m easier to read |
redundant variable |
||
Line 413:
local potential_subtags = mw.text.split(tag, "-")
local parsed_subtags = parsed_subtags_mt(potential_subtags)
-- Language tags probably only contain ASCII alphabetic and numerical
Line 477 ⟶ 476:
end
last_matched_subtag_i = subtag_i
elseif not subtag_info[index] then
break
Line 483 ⟶ 481:
end
if
-- Not all potential subtags were matched. Check for private-use subtags.
-- https://tools.ietf.org/html/bcp47#section-2.2.7
|