Merge "Fix reference search not working with uppercase groups/names"

This commit is contained in:
jenkins-bot 2024-07-22 09:52:09 +00:00 committed by Gerrit Code Review
commit d167c8e293

View file

@ -187,7 +187,7 @@ ve.ui.MWReferenceSearchWidget.prototype.buildSearchIndex = function () {
let $element;
// Make visible text, citation and reference name searchable
let text = citation + ' ' + name;
let text = ( citation + ' ' + name ).toLowerCase();
if ( itemNode.length ) {
$element = new ve.ui.MWPreviewElement( itemNode, { useView: true } ).$element;
text = $element.text().toLowerCase() + ' ' + text;