Skip to content
This repository has been archived by the owner on Apr 20, 2024. It is now read-only.

Commit

Permalink
Update String+Sugar.swift
Browse files Browse the repository at this point in the history
  • Loading branch information
steffendsommer authored May 3, 2017
1 parent 2f7fb48 commit 6cb7a89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/String+Sugar.swift
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ extension String {
internal func matches(regex: String) -> [String] {
#if os(Linux)
do {
let regex = try RegularExpression(pattern: regex, options: [])
let regex = try NSRegularExpression(pattern: regex, options: [])
let nsString = NSString(string: self)
let results = regex.matches(
in: self,
Expand Down

0 comments on commit 6cb7a89

Please sign in to comment.