File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -148,16 +148,18 @@ $(document).ready(function() {
148148 $ ( '.algolia-docsearch-suggestion--wrapper' ) . each ( ( index , element ) => {
149149 const title = $ ( element ) . find ( '.algolia-docsearch-suggestion--title' ) ;
150150 const category = $ ( element ) . find ( '.algolia-docsearch-suggestion--subcategory-column-text' ) ;
151- category . append ( '<span class="aa-suggestion-title-separator" aria-hidden="true"> › </span>' ) ;
151+ const separatorText = '›' ;
152+ const separatorHtml = '<span class="aa-suggestion-title-separator" aria-hidden="true"> ' + separatorText + ' </span>' ;
153+ category . append ( separatorHtml ) ;
152154 if ( title . find ( '.aa-suggestion-title-separator' ) . length ) {
153155 $ . each ( title . contents ( ) , ( i , e ) => {
154156 if ( title . contents ( ) . length > 1 ) {
155157 $ ( e ) . appendTo ( category ) ;
156158 }
157159 } ) ;
158160 }
159- if ( '›' != category . text ( ) . trim ( ) . slice ( - 1 ) ) {
160- category . append ( '<span class="aa-suggestion-title-separator" aria-hidden="true"> › </span>' ) ;
161+ if ( separatorText != category . text ( ) . trim ( ) . slice ( - 1 ) ) {
162+ category . append ( separatorHtml ) ;
161163 }
162164 const displayedText = $ ( element ) . find ( '.algolia-docsearch-suggestion--text' ) ;
163165 if ( displayedText . length && displayedText . text ( ) == searchedText + '…' ) {
You can’t perform that action at this time.
0 commit comments