mirror of
https://github.com/QuivrHQ/quivr.git
synced 2024-12-18 03:41:44 +03:00
8 lines
138 B
Python
8 lines
138 B
Python
|
import re
|
||
|
|
||
|
|
||
|
def sanitize_function_name(string):
|
||
|
sanitized_string = re.sub(r"[^a-zA-Z0-9_-]", "", string)
|
||
|
|
||
|
return sanitized_string
|