popups about server-sided features

This commit is contained in:
eevee
2024-04-26 23:58:28 +03:00
parent a330623a06
commit d942b4630c
4 changed files with 103 additions and 0 deletions
@@ -0,0 +1,10 @@
import Foundation
extension String {
static func ~= (lhs: String, rhs: String) -> Bool {
guard let regex = try? NSRegularExpression(pattern: rhs) else { return false }
let range = NSRange(location: 0, length: lhs.utf16.count)
return regex.firstMatch(in: lhs, options: [], range: range) != nil
}
}