mirror of
https://github.com/realm/SwiftLint.git
synced 2026-06-06 20:18:40 +00:00
fix compilation on Linux
This commit is contained in:
@@ -58,7 +58,7 @@ public struct VoidReturnRule: ConfigurationProviderRule, CorrectableRule {
|
||||
return file.matchPattern(pattern, excludingSyntaxKinds: kinds,
|
||||
excludingPattern: excludingPattern) { $0.rangeAt(1) }.flatMap {
|
||||
let parensRegex = NSRegularExpression.forcePattern(parensPattern)
|
||||
return parensRegex.firstMatch(in: file.contents, range: $0)?.range
|
||||
return parensRegex.firstMatch(in: file.contents, options: [], range: $0)?.range
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user