2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-08 13:24:56 +00:00

FB_CALLLIST: added missing time frame unit "week" to AttrFn check.

git-svn-id: https://svn.fhem.de/fhem/trunk@11012 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
markusbloch 2016-03-06 16:36:19 +00:00
parent 050bf32c3b
commit bc81874cf3

View File

@ -206,7 +206,7 @@ sub FB_CALLLIST_Attr($@)
} }
elsif($attrib eq "expire-calls-after") elsif($attrib eq "expire-calls-after")
{ {
if($value !~ /^\s*\d+(?:\.\d+)?(?:\s+(?:minute|hour|day|month|year)s?)?\s*$/i) if($value !~ /^\s*\d+(?:\.\d+)?(?:\s+(?:minute|hour|day|week|month|year)s?)?\s*$/i)
{ {
return "not a valid time frame value. See commandref for the correct syntax."; return "not a valid time frame value. See commandref for the correct syntax.";
} }