chore: Improve Tag.predicate(name:) case-insensitivity
This commit is contained in:
parent
270bb6a1ed
commit
bf5a091798
|
@ -92,7 +92,7 @@ public extension Tag {
|
||||||
|
|
||||||
static func predicate(name: String) -> NSPredicate {
|
static func predicate(name: String) -> NSPredicate {
|
||||||
// use case-insensitive query as tags #CaN #BE #speLLed #USiNG #arbITRARy #cASe
|
// use case-insensitive query as tags #CaN #BE #speLLed #USiNG #arbITRARy #cASe
|
||||||
NSPredicate(format: "%K contains[c] %@", #keyPath(Tag.name), name)
|
NSPredicate(format: "%K MATCHES[c] %@", #keyPath(Tag.name), name)
|
||||||
}
|
}
|
||||||
|
|
||||||
static func predicate(domain: String, following: Bool) -> NSPredicate {
|
static func predicate(domain: String, following: Bool) -> NSPredicate {
|
||||||
|
|
Loading…
Reference in New Issue