- handle special chars in store name.

This commit is contained in:
gazebo
2018-11-07 18:12:32 +08:00
parent e5510db6ea
commit a5d22c3655
4 changed files with 31 additions and 19 deletions

View File

@@ -166,3 +166,7 @@ func FormalizePageSize(pageSize int) int {
}
return pageSize
}
func FormalizeName(name string) string {
return utils.TrimBlankChar(strings.Replace(strings.Replace(name, "\t", "", -1), "\"", "", -1))
}