(str)
| 361 | // -- Intake item generation --------------------------------------------------- |
| 362 | |
| 363 | function slugify(str) { |
| 364 | return str |
| 365 | .replace(/[/\\]/g, '-') |
| 366 | .replace(/\.[^.]+$/, '') |
| 367 | .replace(/[^a-zA-Z0-9-]/g, '-') |
| 368 | .replace(/-+/g, '-') |
| 369 | .replace(/^-|-$/g, '') |
| 370 | .toLowerCase(); |
| 371 | } |
| 372 | |
| 373 | /** Collect marker_hash values from existing intake item frontmatter. */ |
| 374 | function readExistingIntakeHashes() { |
no outgoing calls
no test coverage detected