MCPcopy Create free account
hub / github.com/denoland/std / isComment

Function isComment

ini/parse.ts:15–21  ·  view source on GitHub ↗

Detect supported comment styles.

(input: string)

Source from the content-addressed store, hash-verified

13
14/** Detect supported comment styles. */
15function isComment(input: string): boolean {
16 return (
17 input.startsWith("#") ||
18 input.startsWith(";") ||
19 input.startsWith("//")
20 );
21}
22
23/** Detect a section start. */
24function isSection(input: string, lineNumber: number): boolean {

Callers 1

parseFunction · 0.70

Calls 1

startsWithMethod · 0.80

Tested by

no test coverage detected