Merge pull request #31774 from silicht/compare_lowercase

fix: compare lowercase keyword in global search
This commit is contained in:
Tarun Pratap Singh 2025-03-20 15:37:14 +05:30 committed by GitHub
commit d0cb87c170
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -377,7 +377,7 @@ frappe.search.utils = {
var field_text = "";
for (var i = 0; i < parts.length; i++) {
var part = parts[i];
if (part.toLowerCase().indexOf(keywords) !== -1) {
if (part.toLowerCase().indexOf(keywords.toLowerCase()) !== -1) {
// If the field contains the keyword
let colon_index, field_value;
if (part.indexOf(" &&& ") !== -1) {