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 f6c7cf6 commit b8663dcCopy full SHA for b8663dc
Sources/DangerDependenciesResolver/InlineDependenciesFinder.swift
@@ -29,7 +29,15 @@ struct InlineDependenciesFinder {
29
.trimmingCharacters(in: .whitespaces)
30
.components(separatedBy: " " + config.majorVersionPrefix)
31
32
- guard let url = URL(string: splittedImportString[0]) else {
+ let url: URL? = {
33
+ #if os(macOS) && compiler(>=5.9)
34
+ if #available(macOS 14.0, *) {
35
+ return URL(string: splittedImportString[0], encodingInvalidCharacters: false)
36
+ }
37
+ #endif
38
+ return URL(string: splittedImportString[0])
39
+ }()
40
+ guard let url = url else {
41
throw Errors.invalidInlineDependencyURL(splittedImportString[0])
42
}
43
0 commit comments