Selaa lähdekoodia

Fix: use text inside parens to generate column names

Jonathan D. Storm 3 viikkoa sitten
vanhempi
commit
28e8eba666
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      main.go

+ 1 - 1
main.go

@@ -291,7 +291,7 @@ func createTable(
 
 var badRunes = regexp.MustCompile(`[^a-zA-Z0-9_\-\.]+`)
 var badFirst = regexp.MustCompile(`^[^a-zA-Z]+`)
-var parens = regexp.MustCompile(`\([^\)]*\)`)
+var parens = regexp.MustCompile(`[\(\)]`)
 var spaces = regexp.MustCompile(`\s+`)
 var hyphens = regexp.MustCompile(`\-+`)
 var unders = regexp.MustCompile(`_+`)