Skip to content

Commit

Permalink
Specify all platforms in availability for regex literal
Browse files Browse the repository at this point in the history
  • Loading branch information
mikhailmaslo authored and stackotter committed Oct 16, 2023
1 parent 6a358b8 commit 106daeb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/MacroToolkit/RegexLiteral.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public struct RegexLiteral: LiteralProtocol {
}

/// Rethrows parsing errors thrown by the `Regex` initializer.
@available(macOS 13.0, *)
@available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
public func regexValue() throws -> Regex<AnyRegexOutput> {
return try Regex(_syntax.regex.text)
}
Expand Down

0 comments on commit 106daeb

Please sign in to comment.