Improved the "callAsFunction(_: )" function for the PrepareURIPathUseCase use case in the library target.
This commit is contained in:
@@ -36,8 +36,11 @@ extension String {
|
||||
guard let matches = self.prefixMatch(of: pattern) else {
|
||||
return nil
|
||||
}
|
||||
|
||||
return matches.output.1 ?? .empty
|
||||
guard let subtracted = matches.output.1 else {
|
||||
return .empty
|
||||
}
|
||||
|
||||
return subtracted
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user