(value)
| 39 | } |
| 40 | |
| 41 | function slug(value) { |
| 42 | return String(value || 'stack') |
| 43 | .replace(/\\/g, '/') |
| 44 | .split('/') |
| 45 | .filter(Boolean) |
| 46 | .join('-') |
| 47 | .replace(/[^a-zA-Z0-9._-]+/g, '-') |
| 48 | .replace(/^-+|-+$/g, '') |
| 49 | || 'stack'; |
| 50 | } |
| 51 | |
| 52 | function readText(filePath) { |
| 53 | try { |
nothing calls this directly
no outgoing calls
no test coverage detected