(text: str)
| 214 | |
| 215 | |
| 216 | def slugify_filename(text: str) -> str: |
| 217 | text = normalize_whitespace(text) |
| 218 | text = re.sub(r"[^\w\s-]", "", text, flags=re.UNICODE) |
| 219 | text = re.sub(r"[-\s]+", "_", text).strip("_") |
| 220 | return text or "paper_note" |
| 221 | |
| 222 | |
| 223 | def shell_config_value(name: str) -> str: |
no test coverage detected