Skip to content

Commit 3b16288

Browse files
authored
Merge pull request #1638 from ahoppen/fix-5.10-build
Fix the build using a Swift 5.10 compiler
2 parents 41c15bf + 8d5af39 commit 3b16288

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Sources/Diagnose/ActiveRequestsCommand.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,15 +66,15 @@ package struct ActiveRequestsCommand: AsyncParsableCommand {
6666
log = try await readOSLog()
6767
}
6868
let logParseRegex = Regex {
69-
/.*/
69+
#/.*/#
7070
"[spid 0x"
7171
Capture { // Signpost ID
7272
OneOrMore(.hexDigit)
7373
}
7474
", process, "
7575
ZeroOrMore(.whitespace)
7676
Capture { // Event ("begin", "event", "end")
77-
/[a-z]+/
77+
#/[a-z]+/#
7878
}
7979
"]"
8080
ZeroOrMore(.any)

Sources/SourceKitLSP/Swift/ReferenceDocumentURL.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ package enum ReferenceDocumentURL {
5959
throw ReferenceDocumentURLError(description: "Invalid Scheme for reference document")
6060
}
6161

62-
let documentType = url.host(percentEncoded: false)
62+
let documentType = url.host
6363

6464
switch documentType {
6565
case MacroExpansionReferenceDocumentURLData.documentType:

0 commit comments

Comments
 (0)