connection updates
This commit is contained in:
@@ -110,7 +110,7 @@ enum LaravelMigrationGenerator {
|
||||
"""
|
||||
}
|
||||
private static func backtickNames(_ text: String) -> [String] {
|
||||
let regex = try! NSRegularExpression(pattern: "`([^`]+)`")
|
||||
guard let regex = try? NSRegularExpression(pattern: "`([^`]+)`") else { return [] }
|
||||
let ns = text as NSString
|
||||
return regex.matches(in: text, range: NSRange(location: 0, length: ns.length)).map { ns.substring(with: $0.range(at: 1)) }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user