Skip to content

Commit

Permalink
Merge pull request #1177 from julia-vscode/sp/completion-lowercase
Browse files Browse the repository at this point in the history
fix: use !isuppercase instead of islowercase in completion logic
  • Loading branch information
pfitzseb authored Oct 23, 2023
2 parents e6cb559 + 1aa6404 commit 48ea5bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/requests/completions.jl
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ using REPL
Returns true if `s` starts with `prefix` or has a sufficiently high fuzzy score.
"""
function is_completion_match(s::AbstractString, prefix::AbstractString, cutoff=3)
starter = if all(islowercase, prefix)
starter = if !any(isuppercase, prefix)
startswith(lowercase(s), prefix)
else
startswith(s, prefix)
Expand Down

0 comments on commit 48ea5bf

Please sign in to comment.