Skip to content

Commit

Permalink
Merge branch 'mezhevikin-master'
Browse files Browse the repository at this point in the history
Closes #54.
  • Loading branch information
sharplet committed Jul 21, 2017
2 parents 11f6aba + a717b66 commit dd66a93
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions Source/MatchResult.swift
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,7 @@ public struct MatchResult {
}

/// The range of the matched string.
///
/// - note: This property currently assumes that it is always possible to
/// create a valid character range based on the underlying UTF-16 range.
/// If for some reason this turns out not to be true, it will trap.
///
/// - returns: The character range of the matched string.
internal var range: Range<String.Index> {
public var range: Range<String.Index> {
let utf16range = _result.range
let start = String.Index(utf16range.lowerBound, within: _string)!
let end = String.Index(utf16range.upperBound, within: _string)!
Expand Down

0 comments on commit dd66a93

Please sign in to comment.