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

Function hasDigit

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

Source from the content-addressed store, hash-verified

22)
23
24func hasDigit(text string) bool {
25 re := regexp.MustCompile(`\d`)
26 return re.MatchString(text)
27}
28
29func hasSymbol(text string) bool {
30 re := regexp.MustCompile(`[-!@#$%^&*()+]`)

Callers 1

IsIsogramFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected