Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/dataease/SQLBot
/ filter_string
Function
filter_string
backend/apps/datasource/api/datasource.py:624–626 ·
view source on GitHub ↗
(text)
Source
from the content-addressed store, hash-verified
622
623
# only allow chinese, a-z, A-Z, 0-9
624
def
filter_string(text):
625
pattern = r
'[^\u4e00-\u9fa5a-zA-Z0-9]'
626
return
re.sub(pattern,
''
, text)
Callers
1
inner
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected