Skip to content

Commit

Permalink
QA issue
Browse files Browse the repository at this point in the history
  • Loading branch information
richfitz committed Jul 19, 2023
1 parent 20a3d6d commit 02985c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/util.R
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ near_match <- function(x, possibilities, threshold = 2, max_matches = 5) {
if (length(possibilities) == 0) {
return(character())
}
d <- set_names(drop(adist(x, possibilities, ignore.case = TRUE)),
d <- set_names(drop(utils::adist(x, possibilities, ignore.case = TRUE)),
possibilities)
utils::head(names(sort(d[d <= threshold])), max_matches)
}
Expand Down

0 comments on commit 02985c6

Please sign in to comment.