We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2145f26 commit 7106826Copy full SHA for 7106826
docs/js/custom.js
@@ -153,11 +153,11 @@ $(document).ready(function() {
153
const category = $(element).find('.algolia-docsearch-suggestion--subcategory-column-text');
154
category.append(separatorHtml);
155
if (title.find('.' + separatorClass).length) {
156
- $.each(title.contents(), (i, e) => {
157
- if (title.contents().length > 1) {
158
- $(e).appendTo(category);
159
- }
160
- });
+ const titleParts = title.html().split(separatorHtml);
+ for (let i = 0; i < titleParts.length-2; i++) {
+ $(titleParts[i]).appendTo(category);
+ }
+ title.html(titleParts[titleParts.length-1]);
161
}
162
if (separatorText != category.text().trim().slice(-1)) {
163
0 commit comments