Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
TBD
==============

Bug Fixes
--------
* Fix CamelCase fuzzy matching.


1.45.0 (2026/01/20)
==============

Expand Down
4 changes: 2 additions & 2 deletions mycli/sqlcompleter.py
Original file line number Diff line number Diff line change
Expand Up @@ -961,7 +961,7 @@ def find_matches(
regex = ".{0,3}?".join(map(re.escape, text))
pat = re.compile(f'({regex})')
under_words_text = [x for x in text.split('_') if x]
case_words_text = re.split(case_change_pat, text)
case_words_text = re.split(case_change_pat, last)

for item in collection:
r = pat.search(item.lower())
Expand All @@ -980,7 +980,7 @@ def find_matches(
completions.append(item)
continue

case_words_item = re.split(case_change_pat, item.lower())
case_words_item = re.split(case_change_pat, item)
occurrences = 0
for elt_word in case_words_text:
for elt_item in case_words_item:
Expand Down