More robust matching for templatestyles tag
starcitizen>Alistair3149 Немає опису редагування |
starcitizen>Alistair3149 (More robust matching for templatestyles tag) |
||
| Рядок 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="(.[^"]+)"' ) do | for styleName in string.gmatch( content, '<templatestyles src="(.[^"]+)"%s*/>' ) 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 | ||