MCPcopy Create free account
hub / github.com/cli/cli / isSpace

Function isSpace

internal/attachments/references.go:750–752  ·  view source on GitHub ↗

isSpace reports whether c is ASCII whitespace, which is what ends an unbracketed markdown destination.

(c byte)

Source from the content-addressed store, hash-verified

748// isSpace reports whether c is ASCII whitespace, which is what ends an
749// unbracketed markdown destination.
750func isSpace(c byte) bool {
751 return c == ' ' || c == '\t' || c == '\n' || c == '\r'
752}
753
754// edit describes a replacement of a byte range of the markdown.
755type edit struct {

Callers 3

scanBareDestFunction · 0.85
skipSpaceFunction · 0.85
standsAloneFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected