mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
15 lines
324 B
Swift
15 lines
324 B
Swift
|
//
|
||
|
// Copyright (c) 2019 Open Whisper Systems. All rights reserved.
|
||
|
//
|
||
|
|
||
|
import Foundation
|
||
|
|
||
|
@objc
|
||
|
public extension NSRegularExpression {
|
||
|
|
||
|
@objc
|
||
|
public func hasMatch(input: String) -> Bool {
|
||
|
return self.firstMatch(in: input, options: [], range: NSRange(location: 0, length: input.utf16.count)) != nil
|
||
|
}
|
||
|
}
|