mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Merge pull request #2863 from omnivore-app/fix/ios-label-name-search
Quote escape label names when searching to handle spaces in names
This commit is contained in:
commit
e91eb7004f
1 changed files with 2 additions and 2 deletions
|
|
@ -408,12 +408,12 @@ import Views
|
|||
|
||||
if !selectedLabels.isEmpty {
|
||||
query.append(" label:")
|
||||
query.append(selectedLabels.map { $0.name ?? "" }.joined(separator: ","))
|
||||
query.append(selectedLabels.map { $0.name != nil ? "\"\(String(describing: $0.name))\"" : "" }.joined(separator: ","))
|
||||
}
|
||||
|
||||
if !negatedLabels.isEmpty {
|
||||
query.append(" !label:")
|
||||
query.append(negatedLabels.map { $0.name ?? "" }.joined(separator: ","))
|
||||
query.append(negatedLabels.map { $0.name != nil ? "\"\(String(describing: $0.name))\"" : "" }.joined(separator: ","))
|
||||
}
|
||||
|
||||
print("QUERY: `\(query)`")
|
||||
|
|
|
|||
Loading…
Reference in a new issue