Skip to content

Commit

Permalink
regex on linux is escaping
Browse files Browse the repository at this point in the history
  • Loading branch information
ypopovych committed Aug 30, 2023
1 parent aecab10 commit 0db2ce7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Sources/Substrate/Utils/Regex.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ public extension NSRegularExpression {
@inlinable
func enumerateMatches(
in string: String, options: NSRegularExpression.MatchingOptions = [],
using block: (NSTextCheckingResult?,
NSRegularExpression.MatchingFlags,
inout Bool) -> Void
using block: @escaping (NSTextCheckingResult?,
NSRegularExpression.MatchingFlags,
inout Bool) -> Void
) {
let nsrange = NSRange(string.startIndex..<string.endIndex, in: string)
enumerateMatches(in: string, options: options, range: nsrange) { (res, flags, bl) in
Expand Down

0 comments on commit 0db2ce7

Please sign in to comment.