(s)
| 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) { |