fix compilation on Linux

This commit is contained in:
JP Simard
2016-12-15 00:36:16 -08:00
parent 55004d554c
commit ea33f68c85
@@ -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
}
}