mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
daemon/inspect_fs_windows.ml: Use {|..|} string literal
This commit is contained in:
@@ -337,7 +337,7 @@ and get_drive_mappings h root data =
|
||||
let key = Hivex.value_key h value in
|
||||
let keylen = String.length key in
|
||||
if keylen >= 14 &&
|
||||
String.lowercase_ascii (String.sub key 0 12) = "\\dosdevices\\" &&
|
||||
String.lowercase_ascii (String.sub key 0 12) = {|\dosdevices\|} &&
|
||||
Char.isalpha key.[12] && key.[13] = ':' then (
|
||||
let drive_letter = String.sub key 12 1 in
|
||||
|
||||
|
||||
Reference in New Issue
Block a user