MCPcopy Index your code
hub / github.com/postlight/parser / clean

Function clean

src/test-helpers.js:8–13  ·  view source on GitHub ↗
(string)

Source from the content-addressed store, hash-verified

6// const fs = require('fs');
7
8export function clean(string) {
9 return string
10 .trim()
11 .replace(/\r?\n|\r/g, '')
12 .replace(/\s+/g, ' ');
13}
14
15export function assertClean(a, b) {
16 assert.equal(clean(a), clean(b));

Callers 3

extractor.test.jsFile · 0.90
assertCleanFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…