нема опису редагування
starcitizen>Alistair3149 Немає опису редагування |
starcitizen>Alistair3149 Немає опису редагування |
||
| Рядок 258: | Рядок 258: | ||
assert( content ~= nil, string.format( '%s does not exist', pageName ) ) | assert( content ~= nil, string.format( '%s does not exist', pageName ) ) | ||
for styleName in string.gmatch( content, 'templatestyles.+src=[\'"](.[^\'"]+%.css)[\'"]' ) do | -- Greedy match to match <templatestyles>, {{#tag:templatestyles}}, and lua calls | ||
for styleName in string.gmatch( content, 'templatestyles.+src%s?=%s?[\'"](.[^\'"]+%.css)[\'"]' ) do | |||
-- TemplateStyles default to Template: when there are no namespace suffix | -- TemplateStyles default to Template: when there are no namespace suffix | ||
if string.find( styleName, ':', 1, true ) then | if string.find( styleName, ':', 1, true ) then | ||