Content deleted Content added
m find function may be faster in if-statements |
basic gmatch is safe here |
||
Line 45:
end
for line in
if mw.ustring.find (line, 'Subtag: [%a%d]+') then -- if this line is the subtag line
code = mw.ustring.match (line, 'Subtag: ([%a%d]+)'); -- extract and save to subtag's code
Line 104:
end
for line in
if mw.ustring.find (line, 'Subtag: [%a%d]+') then -- if this line is the subtag line
code = mw.ustring.match (line, 'Subtag: ([%a%d]+)'); -- extract and save to subtag's code
Line 148:
file_date = content:match ('(File%-Date: %d%d%d%d%-%d%d%-%d%d)'); -- get the file date line from this version of the source file
for record in
if mw.ustring.find (record, 'Type: language') then -- if a language record
code, descriptions = get_lang_script_region_parts (record); -- get the code and description(s)
|