1
1
mirror of https://github.com/qvacua/vimr.git synced 2024-12-26 07:13:24 +03:00

swiftformat Ignore

This commit is contained in:
Tae Won Ha 2023-11-10 21:30:31 +01:00
parent 6de41ab2aa
commit f9be41f220
No known key found for this signature in database
GPG Key ID: E40743465B5B8B44

View File

@ -79,12 +79,12 @@ public struct Filter: CustomStringConvertible {
if self.isRelativeToBase {
return url.path.withCString { stringCstr in
wildmatch(patternCstr, stringCstr, WM_WILDSTAR) == WM_MATCH
wildmatch(self.patternCstr, stringCstr, WM_WILDSTAR) == WM_MATCH
}
}
return url.lastPathComponent.withCString { stringCstr in
wildmatch(patternCstr, stringCstr, WM_WILDSTAR) == WM_MATCH
wildmatch(self.patternCstr, stringCstr, WM_WILDSTAR) == WM_MATCH
}
}
@ -92,7 +92,7 @@ public struct Filter: CustomStringConvertible {
public func matches(_ string: String) -> Bool {
string.withCString {
stringCstr in
wildmatch(patternCstr, stringCstr, WM_WILDSTAR) == WM_MATCH
wildmatch(self.patternCstr, stringCstr, WM_WILDSTAR) == WM_MATCH
}
}