Skip to content

Commit

Permalink
Fix EventQuery text filtering to use case-sensitive matching for name…
Browse files Browse the repository at this point in the history
… search
  • Loading branch information
kasianov-mikhail committed Nov 29, 2024
1 parent a62bee1 commit f09b1bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Scout/UI/Event.swift
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ struct EventQuery {
predicates.append(.init(format: "level IN %@", levels.map(\.rawValue)))
}
if !text.isEmpty {
predicates.append(.init(format: "name BEGINSWITH %@", text.lowercased()))
predicates.append(.init(format: "name BEGINSWITH %@", text))
}
if !name.isEmpty {
predicates.append(.init(format: "name == %@", name))
Expand Down

0 comments on commit f09b1bb

Please sign in to comment.