Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
24
func
hasDigit(text string) bool {
25
re := regexp.MustCompile(`\d`)
26
return
re.MatchString(text)
27
}
28
29
func
hasSymbol(text string) bool {
30
re := regexp.MustCompile(`[-!@#$%^&*()+]`)
Callers
1
IsIsogram
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected