mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-04 22:19:38 +00:00
98_Hyperion: fix regex warning
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@12676 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
d6e9eaf524
commit
84d3b014da
@ -822,7 +822,7 @@ sub Hyperion_Attr(@)
|
|||||||
}
|
}
|
||||||
elsif ($attr_name eq "hyperionCustomEffects")
|
elsif ($attr_name eq "hyperionCustomEffects")
|
||||||
{
|
{
|
||||||
if ($attr_value !~ /^{"name":"[a-zA-Z0-9_-]+","oname":"[a-zA-Z0-9_-]+","args":{[a-zA-Z0-9:_\[\]\.",-]+}}([\s(\r\n)]{"name":"[a-zA-Z0-9_-]+","oname":"[a-zA-Z0-9_-]+","args":{[a-zA-Z0-9:_\[\]\.",-]+}}){0,}$/)
|
if ($attr_value !~ /^\{"name":"[a-zA-Z0-9_-]+","oname":"[a-zA-Z0-9_-]+","args":\{[a-zA-Z0-9:_\[\]\.",-]+\}\}([\s(\r\n)]\{"name":"[a-zA-Z0-9_-]+","oname":"[a-zA-Z0-9_-]+","args":\{[a-zA-Z0-9:_\[\]\.",-]+\}\}){0,}$/)
|
||||||
{
|
{
|
||||||
$err = "Invalid value $attr_value for attribute $attr_name. Must be a space separated list of JSON strings.";
|
$err = "Invalid value $attr_value for attribute $attr_name. Must be a space separated list of JSON strings.";
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user