diff --git a/Pod/Classes/StringExtensions.swift b/Pod/Classes/StringExtensions.swift index 218d426..8c9c16f 100644 --- a/Pod/Classes/StringExtensions.swift +++ b/Pod/Classes/StringExtensions.swift @@ -267,7 +267,7 @@ public extension String { subscript(r: Range) -> String { get { let startIndex = self.startIndex.advancedBy(r.startIndex) - let endIndex = self.startIndex.advancedBy(r.endIndex - r.startIndex) + let endIndex = self.startIndex.advancedBy(r.endIndex) return self[startIndex..