Skip to content

Commit

Permalink
fix: escaping closure captures non-escaping parameter 'block'
Browse files Browse the repository at this point in the history
  • Loading branch information
Asura19 committed Oct 12, 2024
1 parent f4e69cd commit 2bc6a59
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Sources/Foundation/NSRegularExpression+REExtensions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,11 @@ public extension Reer where Base: NSRegularExpression {
in string: String,
options: NSRegularExpression.MatchingOptions = [],
range: Range<String.Index>,
using block: (_ result: NSTextCheckingResult?, _ flags: NSRegularExpression.MatchingFlags, _ stop: inout Bool) -> Void
using block: @escaping (
_ result: NSTextCheckingResult?,
_ flags: NSRegularExpression.MatchingFlags,
_ stop: inout Bool
) -> Void
) {
base.enumerateMatches(
in: string,
Expand Down

0 comments on commit 2bc6a59

Please sign in to comment.