MCPcopy Create free account
hub / github.com/dropbox/godropbox / isValidComment

Function isValidComment

database/sqlbuilder/statement.go:992–994  ·  view source on GitHub ↗
(comment string)

Source from the content-addressed store, hash-verified

990var validCommentRegexp *regexp.Regexp = regexp.MustCompile("^[\\w .?]*$")
991
992func isValidComment(comment string) bool {
993 return validCommentRegexp.MatchString(comment)
994}
995
996func writeComment(comment string, buf *bytes.Buffer) error {
997 if comment != "" {

Callers 1

writeCommentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected