소스 검색

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(`_+`)