Skip to content

Commit 835b966

Browse files
committed
String 'characters' is deprecated since Swift 3.2
1 parent db44c1b commit 835b966

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Source/Protocol/Reusable.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ internal extension String {
5353

5454
internal func matches(of pattern: String) -> [String] {
5555
let regex = try? NSRegularExpression(pattern: pattern, options: .caseInsensitive)
56-
#if swift(>=4)
56+
#if swift(>=3.2)
5757
let fullText = NSRange(location: 0, length: count)
5858
#else
5959
let fullText = NSRange(location: 0, length: characters.count)

0 commit comments

Comments
 (0)