Эх сурвалжийг харах

Fix: use text inside parens to generate column names

Jonathan D. Storm 3 долоо хоног өмнө
parent
commit
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(`_+`)