summaryrefslogtreecommitdiff
path: root/server/continuedev/plugins/context_providers/util.py
blob: 61bea8aa269d2cdc9aabeb24c449c13b1fc7217b (plain)
1
2
3
4
5
import re


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