MCPcopy Create free account
hub / github.com/scottrogowski/code2flow / preprocessRFC2822

Function preprocessRFC2822

tests/test_code/js/moment/moment.js:2440–2447  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

2438 }
2439
2440 function preprocessRFC2822(s) {
2441 // Remove comments and folding whitespace and replace multiple-spaces with a single space
2442 return s
2443 .replace(/\([^)]*\)|[\n\t]/g, ' ')
2444 .replace(/(\s\s+)/g, ' ')
2445 .replace(/^\s\s*/, '')
2446 .replace(/\s\s*$/, '');
2447 }
2448
2449 function checkWeekday(weekdayStr, parsedInput, config) {
2450 if (weekdayStr) {

Callers 1

configFromRFC2822Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected