MCPcopy Create free account
hub / github.com/TheAlgorithms/Go / hasSymbol

Function hasSymbol

strings/isisogram.go:29–32  ·  view source on GitHub ↗
(text string)

Source from the content-addressed store, hash-verified

27}
28
29func hasSymbol(text string) bool {
30 re := regexp.MustCompile(`[-!@#$%^&*()+]`)
31 return re.MatchString(text)
32}
33
34func IsIsogram(text string, order IsogramOrder) (bool, error) {
35 if order < First || order > Third {

Callers 1

IsIsogramFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected