Skip to content

Commit

Permalink
Merge branch 'main' into build_plugin_integration_tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rnro authored Jan 21, 2025
2 parents 3c34daa + 0e6d93b commit 58c07c6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Plugins/PluginsShared/PluginUtils.swift
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,10 @@ func constructProtocGenGRPCSwiftArguments(

extension URL {
/// Returns `URL.absoluteString` with the `file://` scheme prefix removed
///
/// Note: This method also removes percent-encoded UTF-8 characters
var absoluteStringNoScheme: String {
var absoluteString = self.absoluteString
var absoluteString = self.absoluteString.removingPercentEncoding ?? self.absoluteString
absoluteString.trimPrefix("file://")
return absoluteString
}
Expand Down

0 comments on commit 58c07c6

Please sign in to comment.