We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 038f1f1 commit dd244ffCopy full SHA for dd244ff
lib/Extensions.fs
@@ -186,9 +186,12 @@ module Path =
186
type Absolute = string
187
type Difference = string
188
189
+ let normalizeSlashes (path: string) =
190
+ path |> String.replace "\\" "/"
191
+
192
let absolute (path: string) : Absolute =
- if Node.path.isAbsolute(path) then path
- else Node.path.resolve(path)
193
+ if Node.path.isAbsolute(path) then path |> normalizeSlashes
194
+ else Node.path.resolve(path) |> normalizeSlashes
195
196
let diff (fromPath: Absolute) (toPath: Absolute) : string =
197
let fromPath =
0 commit comments