From 240a4997a5d1b6bec831f08b0a613fba02c63a23 Mon Sep 17 00:00:00 2001 From: Krzysztof Kinal <78863523+kinvl@users.noreply.github.com> Date: Sat, 26 Jun 2021 16:36:32 +0200 Subject: [PATCH] Update to Swift 5 --- Source/Regex.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Regex.swift b/Source/Regex.swift index 6f1f32c..9a6977b 100644 --- a/Source/Regex.swift +++ b/Source/Regex.swift @@ -2,7 +2,7 @@ import Foundation private extension String { var wholeRange: NSRange { - return NSRange(location: 0, length: characters.count) + return NSRange(location: 0, length: self.count) } //TODO: Use ObjectiveCBridgeable or wait until NSRegularExpression has a swifty API