mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Cite
synced 2024-11-30 17:54:20 +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;
|
let $element;
|
||||||
// Make visible text, citation and reference name searchable
|
// Make visible text, citation and reference name searchable
|
||||||
let text = citation + ' ' + name;
|
let text = ( citation + ' ' + name ).toLowerCase();
|
||||||
if ( itemNode.length ) {
|
if ( itemNode.length ) {
|
||||||
$element = new ve.ui.MWPreviewElement( itemNode, { useView: true } ).$element;
|
$element = new ve.ui.MWPreviewElement( itemNode, { useView: true } ).$element;
|
||||||
text = $element.text().toLowerCase() + ' ' + text;
|
text = $element.text().toLowerCase() + ' ' + text;
|
||||||
|
|
Loading…
Reference in a new issue