Skip to content

Commit

Permalink
fix: Inline menu does not open because bad compare
Browse files Browse the repository at this point in the history
Bad compare of uppercase and lowercase
  • Loading branch information
zatteo committed Jul 22, 2024
1 parent 214755b commit b5bc952
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1049,10 +1049,21 @@ export class InlineMenuFieldQualificationService
) {
const searchedValues = this.getAutofillFieldDataKeywords(autofillFieldData, fuzzyMatchKeywords);
if (typeof searchedValues === "string") {
// Cozy customization, compare lowercase keyword and lowercase searchedValue
//*
return keywords.some((keyword) => searchedValues.indexOf(keyword.toLowerCase()) > -1);
/*/
return keywords.some((keyword) => searchedValues.indexOf(keyword) > -1);
//*/
}

// Cozy customization, compare lowercase keyword and lowercase searchedValue
//*
return keywords.some((keyword) => searchedValues.has(keyword.toLowerCase()));

/*/
return keywords.some((keyword) => searchedValues.has(keyword));
//*/
}

/**
Expand Down

0 comments on commit b5bc952

Please sign in to comment.