MCPcopy Index your code
hub / github.com/darkreader/darkreader / parseArray

Function parseArray

src/utils/text.ts:45–50  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

43}
44
45export function parseArray(text: string): string[] {
46 return text.replace(/\r/g, '')
47 .split('\n')
48 .map((s) => s.trim())
49 .filter((s) => s);
50}
51
52export function formatArray(arr: readonly string[]): string {
53 return arr.concat('').join('\n');

Callers 8

handleDarkSitesMethod · 0.90
detector-hints.tsFile · 0.90
parseDynamicThemeFixesFunction · 0.90
parseStaticThemesFunction · 0.90
parseInversionFixesFunction · 0.90
parseSitesFixesConfigFunction · 0.90
config.tests.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected