connection updates

This commit is contained in:
Mark Gregory
2026-10-19 12:46:18 +01:00
parent b06a605f38
commit 682132e7ac
4 changed files with 223 additions and 8 deletions
+1 -1
View File
@@ -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)) }
}