mirror of
https://github.com/pacnpal/Roo-Code.git
synced 2025-12-20 12:21:13 -05:00
Fix bad matching bug with empty lines
This commit is contained in:
@@ -33,7 +33,7 @@ function levenshteinDistance(a: string, b: string): number {
|
||||
}
|
||||
|
||||
function getSimilarity(original: string, search: string): number {
|
||||
if (original === '' || search === '') {
|
||||
if (search === '') {
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user