MCPcopy Create free account
hub / github.com/coder/coder / isBinaryString

Function isBinaryString

site/src/modules/templates/TemplateFiles/isBinaryData.ts:12–19  ·  view source on GitHub ↗
(str: string)

Source from the content-addressed store, hash-verified

10 );
11
12 const isBinaryString = (str: string): boolean => {
13 for (let i = 0; i < str.length; i++) {
14 if (!textChars.has(str.charCodeAt(i))) {
15 return true;
16 }
17 }
18 return false;
19 };
20
21 return isBinaryString(asciiString);
22}

Callers 1

isBinaryDataFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected