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 905a6df377
commit 58d14007c1

View File

@@ -206,7 +206,7 @@ sub FB_CALLLIST_Attr($@)
}
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.";
}