Module:add etymology: Difference between revisions

ਕੋਈ ਸੋਧ ਸਾਰ ਨਹੀਂ
No edit summary
No edit summary
Line 49: Line 49:
while mw.ustring.find(content, "===[^=]+===.+", check_init) do
while mw.ustring.find(content, "===[^=]+===.+", check_init) do
local match_start, _, section_check = mw.ustring.find(content, "(===[^=]+===.+)", check_init)
local match_start, _, section_check = mw.ustring.find(content, "(===[^=]+===.+)", 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 = mw.ustring.find(content, section_check, check_init, true)
index.m1 = mw.ustring.find(content, section_check, check_init, true)
section.main = section_check
section.main = section_check