Skip to content

Commit

Permalink
Update src/device/manager/device_discovery.rs
Browse files Browse the repository at this point in the history
Co-authored-by: João Antônio Cardoso <[email protected]>
  • Loading branch information
RaulTrombin and joaoantoniocardoso authored Sep 5, 2024
1 parent da1a1d0 commit be43238
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/device/manager/device_discovery.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,11 @@ impl DiscoveryResponse {

let regex_pattern = format!(
r"(?x)
^{}\r\n
{}\r\n
{}\r\n
{}\r\n$
",
device_name_part, manufacturer_part, mac_address_part, ip_address_part
^{device_name_part}\r\n
{manufacturer_part}\r\n
{mac_address_part}\r\n
{ip_address_part}\r\n$
"
);

let re = match Regex::new(&regex_pattern) {
Expand Down

0 comments on commit be43238

Please sign in to comment.