Skip to content

Commit 1562ee7

Browse files
authored
Merge pull request #161 from minglumlu/private/mingl/CA-320563
CA-320563: re-submit for missing change on regex
2 parents 25c102a + b76b002 commit 1562ee7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/network_utils.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ module Sysfs = struct
246246
try
247247
Sys.readdir ("/sys/bus/pci/drivers/" ^ driver)
248248
|> Array.to_list
249-
|> List.filter (Re.execp (Re.Perl.compile_pat "\\d+:[a-f\\d]+:[a-f\\d]+\\.\\d+"))
249+
|> List.filter (Re.execp (Re.Perl.compile_pat {|\d+:[a-f\d]+:[a-f\d]+\.\d|}))
250250
|> List.length
251251
with _ -> 0
252252

0 commit comments

Comments
 (0)