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

Function isDigit

pkg/workflow/js.go:391–393  ·  view source on GitHub ↗

isDigit checks if a rune is a digit

(r rune)

Source from the content-addressed store, hash-verified

389
390// isDigit checks if a rune is a digit
391func isDigit(r rune) bool {
392 return r >= '0' && r <= '9'
393}
394
395// FormatJavaScriptForYAML formats a JavaScript script with proper indentation for embedding in YAML
396func FormatJavaScriptForYAML(script string) []string {

Calls

no outgoing calls

Tested by

no test coverage detected