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

Function isSpace

internal/attachments/references.go:713–715  ·  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

711// isSpace reports whether c is ASCII whitespace, which is what ends an
712// unbracketed markdown destination.
713func isSpace(c byte) bool {
714 return c == ' ' || c == '\t' || c == '\n' || c == '\r'
715}
716
717// edit describes a replacement of a byte range of the markdown.
718type edit struct {

Callers 3

scanBareDestFunction · 0.85
skipSpaceFunction · 0.85
standsAloneFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected