Remove redundant preg_match escape characters

This commit is contained in:
Ely Deckers 2022-02-21 08:40:43 +01:00
parent 618c9bc010
commit d76b2d0cb1
1 changed files with 2 additions and 2 deletions

View File

@ -1160,8 +1160,8 @@ class Command
private static function parse_dhcp_record(string $record): ?array
{
$is_lease_record = preg_match("/^lease\s+(.*)\s+\{(.+)\}$/", $record, $lease_record_match);
$is_failover_record = preg_match("/^failover.*\"(.*)\"\s+state\s+\{(.+)\}$/", $record, $failover_record_match);
$is_lease_record = preg_match("/^lease\s+(.*)\s+{(.+)}$/", $record, $lease_record_match);
$is_failover_record = preg_match("/^failover.*\"(.*)\"\s+state\s+{(.+)}$/", $record, $failover_record_match);
$is_known_record_type = $is_lease_record || $is_failover_record;
if (!$is_known_record_type) {