fix RegRex in PresenceRun Fn

This commit is contained in:
Marko Oldenburg 2022-01-05 20:48:22 +01:00
parent 4a604c3554
commit cc7e18d589

View File

@ -1712,10 +1712,7 @@ sub LGTV_WebOS_PresenceRun {
"LGTV_WebOS ($name) - ping command returned with output:\n$tmp" ); "LGTV_WebOS ($name) - ping command returned with output:\n$tmp" );
$response = "$name|" $response = "$name|"
. ( . (
( ( $tmp =~ /\d+ [Bb]ytes (from|von)/x && $tmp !~ /[Uu]nreachable/x )
$tmp =~ /\d+ [Bb]ytes (from|von)/x
&& !$tmp =~ /[Uu]nreachable/x
)
? "present" ? "present"
: "absent" : "absent"
); );