From 3b59ddfd8d200471c67ef00c3fc4d4d333809352 Mon Sep 17 00:00:00 2001 From: Max Desiatov Date: Mon, 5 Feb 2024 16:42:46 +0000 Subject: [PATCH] Mark `RegEx` type as deprecated in favor of stdlib `Regex` Users should migrate to Swift stdlib `Regex` type instead. --- Sources/TSCBasic/RegEx.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/Sources/TSCBasic/RegEx.swift b/Sources/TSCBasic/RegEx.swift index 14e8cc8a..86ad3698 100644 --- a/Sources/TSCBasic/RegEx.swift +++ b/Sources/TSCBasic/RegEx.swift @@ -12,6 +12,7 @@ import Foundation /// A helpful wrapper around NSRegularExpression. /// - SeeAlso: NSRegularExpression +@available(*, deprecated, message: "Use Swift `Regex` type instead") public struct RegEx { private let regex: NSRegularExpression public typealias Options = NSRegularExpression.Options