Skip to content

Commit f4fa0a8

Browse files
MaxDesiatovjakepetroules
authored andcommitted
Mark RegEx type as deprecated in favor of stdlib Regex
Users should migrate to Swift stdlib `Regex` type instead.
1 parent 8d43a4e commit f4fa0a8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Sources/TSCBasic/RegEx.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import Foundation
1212

1313
/// A helpful wrapper around NSRegularExpression.
1414
/// - SeeAlso: NSRegularExpression
15+
@available(*, deprecated, message: "Use Swift `Regex` type instead")
1516
public struct RegEx {
1617
private let regex: NSRegularExpression
1718
public typealias Options = NSRegularExpression.Options

0 commit comments

Comments
 (0)