Module:Yesno: Difference between revisions
Trim space
m>Ori Livneh (Ported Template:Yesno to Lua) |
m>Ori Livneh (Trim space) |
||
Line 22: | Line 22: | ||
val = (val or ''):lower() | val = (val or ''):lower() | ||
val = val:match'^%s*(.*%S)' or '' | |||
if val == '' then | if val == '' then |