10,731
edits
TheNightAvl (talk | contribs) No edit summary |
TheNightAvl (talk | contribs) No edit summary |
||
Line 47: | Line 47: | ||
index.e1, index.e2, section.etymology = mw.ustring.find(content, regex_etymology) | index.e1, index.e2, section.etymology = mw.ustring.find(content, regex_etymology) | ||
local check_init = 1 | local check_init = 1 | ||
while mw.ustring.find(content, " | while mw.ustring.find(content, "===[^=]+===%s.+", check_init) do | ||
local match_start, _, section_check = mw.ustring.find(content, " | local match_start, _, section_check = mw.ustring.find(content, "(===[^=]+===\n.+)", check_init) | ||
if mw.ustring.find(frame:preprocess(section_check), "^===[^=]+===%s+<strong class=\"headword\"") then | if mw.ustring.find(frame:preprocess(section_check), "^===[^=]+===%s+<strong class=\"headword\"") then | ||
index.m1, section.main = mw.ustring.find(content, section_check, check_init, true), section_check | index.m1, section.main = mw.ustring.find(content, section_check, check_init, true), section_check |