修复读表引号问题

This commit is contained in:
flswld
2023-03-28 17:19:27 +08:00
parent ddf8700c33
commit a175417ebf
6 changed files with 167 additions and 160 deletions

View File

@@ -243,6 +243,7 @@ func readTable[T any](tablePath string, table *[]*T) {
}
reader := csv.NewReader(bytes.NewBuffer(fileData))
reader.Comma = '\t'
reader.LazyQuotes = true
dec, err := csvutil.NewDecoder(reader)
if err != nil {
info := fmt.Sprintf("create decoder error: %v", err)