Преглед изворни кода

Fix: use text inside parens to generate column names

Jonathan D. Storm пре 3 недеља
родитељ
комит
28e8eba666
1 измењених фајлова са 1 додато и 1 уклоњено
  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(`_+`)