Skip to content

Commit

Permalink
Merge branch 'linux-compatibility'
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew804 committed Jan 24, 2017
2 parents be8da5b + 6629c07 commit 8ef3849
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/Regex.swift
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public struct Regex: CustomStringConvertible, CustomDebugStringConvertible {
///
/// - note: If the match is successful, the result is also stored in `Regex.lastMatch`.
#if os(Linux)
public func match(string: String) -> MatchResult? {
public func match(_ string: String) -> MatchResult? {
let match = regularExpression
.firstMatch(in: string, options: [], range: string.entireRange)
.map { MatchResult(string, $0) }
Expand Down Expand Up @@ -117,7 +117,7 @@ public struct Regex: CustomStringConvertible, CustomDebugStringConvertible {
///
/// - note: If there is at least one match, the first is stored in `Regex.lastMatch`.
#if os(Linux)
public func allMatches(string: String) -> [MatchResult] {
public func allMatches(_ string: String) -> [MatchResult] {
let matches = regularExpression
.matches(in: string, options: [], range: string.entireRange)
.map { MatchResult(string, $0) }
Expand Down

0 comments on commit 8ef3849

Please sign in to comment.