Prechádzať zdrojové kódy

Fix: use text inside parens to generate column names

Jonathan D. Storm 3 týždňov pred
rodič
commit
28e8eba666
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  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(`_+`)