Skip to content

Commit 5db1cf2

Browse files
committed
Fix unit test
1 parent f91cbe5 commit 5db1cf2

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Core/Package.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,7 @@ let package = Package(
161161
.product(name: "SuggestionModel", package: "Tool"),
162162
.product(name: "Environment", package: "Tool"),
163163
.product(name: "OpenAIService", package: "Tool"),
164+
.product(name: "AppMonitoring", package: "Tool"),
164165
.product(name: "ComposableArchitecture", package: "swift-composable-architecture"),
165166
]
166167
),

Core/Sources/SuggestionInjector/SuggestionInjector.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ public struct SuggestionInjector {
239239

240240
// remove the first adjacent placeholder in suffix which looks like `<#Hello#>`
241241

242-
let regex = try! NSRegularExpression(pattern: "\\s+<#.*?#>")
242+
let regex = try! NSRegularExpression(pattern: "\\s*?<#.*?#>")
243243

244244
if let firstPlaceholderRange = regex.firstMatch(
245245
in: suffix,

0 commit comments

Comments
 (0)