Skip to content

Commit

Permalink
add more check-and-replace for special characters for table names
Browse files Browse the repository at this point in the history
  • Loading branch information
manos committed Jul 20, 2017
1 parent 04e216a commit d44a7a1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions checkname.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,8 @@ func getCheckName() string {
panic(err.Error())
}
checkidName := strings.Replace(responseName.Check.Name, " ", "_", -1)
checkidName = strings.Replace(checkidName, "/", "_", -1)
checkidName = strings.Replace(checkidName, ".", "_", -1)
checkidName = strings.Replace(checkidName, "__", "_", -1)
return checkidName
}

0 comments on commit d44a7a1

Please sign in to comment.