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 198059e commit 83aca5cCopy full SHA for 83aca5c
Sources/FoundationEssentials/URL/URLParser.swift
@@ -588,6 +588,9 @@ internal struct RFC3986Parser: URLParserProtocol {
588
/// Parses a URL string into `URLParseInfo`, with the option to add (or skip) encoding of invalid characters.
589
/// If `encodingInvalidCharacters` is `true`, this function handles encoding of invalid components.
590
static func parse(urlString: String, encodingInvalidCharacters: Bool) -> URLParseInfo? {
591
+ #if os(Windows)
592
+ let urlString = urlString.replacing(UInt8(ascii: "\\"), with: UInt8(ascii: "/"))
593
+ #endif
594
guard let parseInfo = parse(urlString: urlString) else {
595
return nil
596
}
0 commit comments