MCPcopy Create free account
hub / github.com/917Dhj/DeepPaperNote / slugify_filename

Function slugify_filename

scripts/common.py:216–220  ·  view source on GitHub ↗
(text: str)

Source from the content-addressed store, hash-verified

214
215
216def 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
223def shell_config_value(name: str) -> str:

Callers 3

default_pdf_pathFunction · 0.85
default_assets_dirFunction · 0.85

Calls 1

normalize_whitespaceFunction · 0.85

Tested by

no test coverage detected