From 518590c8f7bd5d4344bd9eef272bc192f5aee6fd Mon Sep 17 00:00:00 2001 From: Ce Zheng Date: Tue, 23 Feb 2016 01:47:46 +0900 Subject: [PATCH] fix bug casting from NSRange to Rnage when String.characters.count != NSString.length --- PySwiftyRegex/PySwiftyRegex.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/PySwiftyRegex/PySwiftyRegex.swift b/PySwiftyRegex/PySwiftyRegex.swift index b6ed119..c6b0b47 100644 --- a/PySwiftyRegex/PySwiftyRegex.swift +++ b/PySwiftyRegex/PySwiftyRegex.swift @@ -485,9 +485,9 @@ public class re { if nsrange.location == NSNotFound { return string.endIndex..