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.
2 parents 3c34daa + 0e6d93b commit 58c07c6Copy full SHA for 58c07c6
Plugins/PluginsShared/PluginUtils.swift
@@ -109,8 +109,10 @@ func constructProtocGenGRPCSwiftArguments(
109
110
extension URL {
111
/// Returns `URL.absoluteString` with the `file://` scheme prefix removed
112
+ ///
113
+ /// Note: This method also removes percent-encoded UTF-8 characters
114
var absoluteStringNoScheme: String {
- var absoluteString = self.absoluteString
115
+ var absoluteString = self.absoluteString.removingPercentEncoding ?? self.absoluteString
116
absoluteString.trimPrefix("file://")
117
return absoluteString
118
}
0 commit comments