aboutsummaryrefslogtreecommitdiffstats
path: root/lib/kernel/Path.ml
diff options
context:
space:
mode:
Diffstat (limited to 'lib/kernel/Path.ml')
-rw-r--r--lib/kernel/Path.ml5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/kernel/Path.ml b/lib/kernel/Path.ml
index f34abe2..9e3c52f 100644
--- a/lib/kernel/Path.ml
+++ b/lib/kernel/Path.ml
@@ -6,9 +6,8 @@ let ( @/ ) x y = x :: y
let to_string path =
path
|> List.map (fun x ->
- let str = BatString.replace ~str:x ~sub:"^" ~by:"^^" |> snd in
- BatString.replace ~str ~sub:"/" ~by:"^/" |> snd )
- |> BatIO.to_string (BatList.print ~first:"/" ~last:"" ~sep:"/" BatString.print)
+ BatString.nreplace ~str:(BatString.nreplace ~str:x ~sub:"^" ~by:"^^") ~sub:"\\" ~by:"^\\" )
+ |> BatIO.to_string (BatList.print ~first:"\\" ~last:"" ~sep:"\\" BatString.print)
module Error = struct
open Concepts.Condition