Content deleted Content added
Create sandbox version of Module:Smyth. Simplifications: remove `if sections[n] == "" or sections[n] == nil` condition, as it will never trigger (first match requires at least one character to be consumed). Correct goof; #table is never nil, so it was probably meant to be #sections == 0. Eliminate similar "if sections[i] == nil or ..."; no value of sections is ever an empty string, and unless this module is severely haunted, there shouldn't be any gaps. |
will never be an empty string |
||
Line 51:
if #sections == 0 then
error("No numbers in the text provided to SmythSection")
elseif
sign = "§"
else
|