mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Cite
synced 2024-11-27 16:30:12 +00:00
Merge "Fix reference search not working with uppercase groups/names"
This commit is contained in:
commit
d167c8e293
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue