(pathComponent string)
| 31 | ) |
| 32 | |
| 33 | func validatePlatformSpecific(pathComponent string) error { |
| 34 | if reservedCharacters.MatchString(pathComponent) { |
| 35 | return fmt.Errorf("%w: %q (%q)", errForbiddenChars, pathComponent, reservedCharacters) |
| 36 | } |
| 37 | |
| 38 | if disallowedKeywords.MatchString(pathComponent) { |
| 39 | return fmt.Errorf("%w: %q (%q)", errForbiddenKeywords, pathComponent, disallowedKeywords) |
| 40 | } |
| 41 | |
| 42 | return nil |
| 43 | } |
no outgoing calls
no test coverage detected
searching dependent graphs…