style(database): format SQL completion regex

Цей коміт міститься в:
l0ng-ai committed 2026-10-29 15:39:07 +08:00
1 джерело c7d32f9e23
коміт 8dea5904f2
1 file changed
+4 -1
+4 -1
Переглянути файл
@@ -68,7 +68,10 @@ export function quoteIdent(name: string, driver: DbDriver): string {
/** A short alias for `table` not in `taken`: `order_items` → `oi`, `users` → `u`. */
export function aliasFor(table: string, taken: ReadonlySet<string>): string {
const words = table.replace(/([a-z])([A-Z])/g, "$1 $2").split(/[_\s.$-]+/).filter(Boolean);
const words = table
.replace(/([a-z])([A-Z])/g, "$1 $2")
.split(/[_\s.$-]+/)
.filter(Boolean);
let base =
words
.map((w) => w[0]!)