From: tjones Date: Tue, 24 Sep 2019 20:42:05 +0000 (-0400) Subject: Enable preservation of grapheme clusters in highlightQuery X-Git-Tag: 1.34.0-rc.0~105^2 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/File:%2A_image6?a=commitdiff_plain;h=662a5d308e6196448b360590273574ca1453c9d2;p=lhc%2Fweb%2Fwiklou.git Enable preservation of grapheme clusters in highlightQuery Make use of the option to preserve grapheme clusters in highlightQuery in OOUI's LabelElement.js so that partial matches in the main search page on Special:Search don't break graphemes. Bug: T35242 Depends-On: Iac79095a1b40ef92b3cfd9421916928217639434 Change-Id: I5c458da39156db8a39412b91cf647aacd43fbbb9 --- diff --git a/resources/src/mediawiki.widgets/mw.widgets.TitleOptionWidget.js b/resources/src/mediawiki.widgets/mw.widgets.TitleOptionWidget.js index 0eb1134f11..89de1551f9 100644 --- a/resources/src/mediawiki.widgets/mw.widgets.TitleOptionWidget.js +++ b/resources/src/mediawiki.widgets/mw.widgets.TitleOptionWidget.js @@ -73,7 +73,7 @@ // Highlight matching parts of link suggestion if ( config.query ) { - this.setHighlightedQuery( config.data, config.query, config.compare ); + this.setHighlightedQuery( config.data, config.query, config.compare, true ); } this.$label.attr( 'title', config.data );