Improved the "callAsFunction(_: )" function for the PrepareURIPathUseCase use case in the library target.

This commit is contained in:
2025-09-30 16:34:48 +02:00
parent 2c3474a1b8
commit 0fea58d295
3 changed files with 82 additions and 90 deletions
@@ -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
}
}