MCPcopy Create free account
hub / github.com/github/gh-aw / invalidRefChar

Method invalidRefChar

pkg/workflow/glob_validation.go:68–75  ·  view source on GitHub ↗
(c rune, why string)

Source from the content-addressed store, hash-verified

66}
67
68func (v *globValidator) invalidRefChar(c rune, why string) {
69 cfmt := "%q"
70 if unicode.IsPrint(c) {
71 cfmt = "'%c'"
72 }
73 format := "character " + cfmt + " is invalid for branch and tag names. %s. see `man git-check-ref-format` for more details. note that regular expression is unavailable"
74 v.error(fmt.Sprintf(format, c, why))
75}
76
77func (v *globValidator) init(pat string) {
78 v.errs = []invalidGlobPattern{}

Callers 2

validateNextMethod · 0.95
validateMethod · 0.95

Calls 1

errorMethod · 0.95

Tested by

no test coverage detected