Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/bpython/bpython
/ _method_match_fuzzy
Function
_method_match_fuzzy
bpython/autocomplete.py:208–210 ·
view source on GitHub ↗
(word: str, size: int, text: str)
Source
from the content-addressed store, hash-verified
206
207
208
def
_method_match_fuzzy(word: str, size: int, text: str) -> bool:
209
s = r
".*{}.*"
.format(
".*"
.join(c
for
c in text))
210
return
re.search(s, word) is not None
211
212
213
_MODES_MAP = {
Callers
nothing calls this directly
Calls
2
search
Method · 0.80
format
Method · 0.45
Tested by
no test coverage detected