Module:Sandbox/Erutuon: Difference between revisions

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)
local matched_count = 0
-- Language tags probably only contain ASCII alphabetic and numerical
Line 477 ⟶ 476:
end
last_matched_subtag_i = subtag_i
matched_count = matched_count + 1
elseif not subtag_info[index] then
break
Line 483 ⟶ 481:
end
if #potential_subtagslast_matched_subtag_i >< matched_count#potential_subtags then
-- Not all potential subtags were matched. Check for private-use subtags.
-- https://tools.ietf.org/html/bcp47#section-2.2.7