Zum Inhalt springen

Modul:Yesno: Unterschied zwischen den Versionen

removing code that's no longer used
(fix logic for the case where the first positional parameter is "¬")
(removing code that's no longer used)
Zeile 23: Zeile 23:
         args = pframe.args
         args = pframe.args
         for k,v in pairs(args) do
         for k,v in pairs(args) do
            any = true
             retvals[k] = v
             retvals[k] = v
         end
         end
Zeile 35: Zeile 34:
     end
     end


     val = val:lower()          -- Coerce to blank if nil; make lowercase.
     val = val:lower()          -- Make lowercase.
     val = val:match'^%s*(.*%S)' or ''  -- Trim whitespace.
     val = val:match'^%s*(.*%S)' or ''  -- Trim whitespace.


Anonymer Benutzer