Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…itor-iOS into develop
  • Loading branch information
diegoreymendez committed Jun 16, 2017
2 parents cc2c34d + 0292487 commit 100ffac
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Aztec/Classes/Extensions/String+EndOfLine.swift
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,9 @@ extension String {
/// - Returns: `true` if the specified offset is in an empty paragraph, `false` otherwise.
///
func isEmptyParagraph(at offset: Int) -> Bool {

let index = self.index(startIndex, offsetBy: offset)
guard let index = self.indexFromLocation(offset) else {
return true
}

return isEmptyParagraph(at: index)
}
Expand Down

0 comments on commit 100ffac

Please sign in to comment.