continue-custom/server/continuedev/plugins/context_providers/util.py
Nate Sesti 279593a848
Strong typing (#533)
* refactor: ♻️ get rid of continuedev.src.continuedev structure

* refactor: ♻️ switching back to server folder

* feat: ✨ make config.py imports shorter

* feat: 🔖 publish as pre-release vscode extension

* refactor: ♻️ refactor and add more completion params to ui

* build: 🏗️ download from preview S3
2023-10-04 23:47:59 -07:00

5 lines
114 B
Python

import re
def remove_meilisearch_disallowed_chars(id: str) -> str:
return re.sub(r"[^0-9a-zA-Z_-]", "", id)