Jump to content
Toggle menu
  • 3 articles
  • 75 files
  • 7 users
  • 37.9K edits
Neodyland Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Module:Calendar: Difference between revisions

From Neodyland Wiki
bypass the regex test if the string is wrong length
mNo edit summary
Line 47: Line 47:
     return nil
     return nil
     end
     end
local year, month, day = ISOdate:match( "(-?%d%d%d%d)-(%d%d)-(%d%d)" )
    -- date string has to start with YYYY-MM-DD date, possibly with a "-" in front
local year, month, day = ISOdate:match( "^(-?%d%d%d%d)-(%d%d)-(%d%d)" )
if not year then
if not year then
return nil
return nil
Cookies help us deliver our services. By using our services, you agree to our use of cookies.