mirror of
https://github.com/fleetdm/fleet
synced 2026-05-23 08:58:41 +00:00
Handbook: strip emojis when displaying subsection titles in nav (#4381)
This commit is contained in:
parent
c50bfee5d1
commit
43871ff387
1 changed files with 2 additions and 2 deletions
|
|
@ -32,7 +32,7 @@ parasails.registerPage('basic-handbook', {
|
|||
debug: false,
|
||||
clickAnalytics: true,
|
||||
algoliaOptions: {
|
||||
'facetFilters': ['section:handbook']
|
||||
facetFilters: ['section:handbook']
|
||||
},
|
||||
});
|
||||
|
||||
|
|
@ -47,7 +47,7 @@ parasails.registerPage('basic-handbook', {
|
|||
// Removing all apostrophes from the title to keep _.kebabCase() from turning words like 'user’s' into 'user-s'
|
||||
let kebabCaseFriendlyTitle = title.replace(/[\’]/g, '');
|
||||
return {
|
||||
title,
|
||||
title: title.replace(/([\uE000-\uF8FF]|\uD83C[\uDF00-\uDFFF]|\uD83D[\uDC00-\uDDFF])/g, ''), // take out any emojis (they look weird in the menu)
|
||||
url: '#' + _.kebabCase(kebabCaseFriendlyTitle),
|
||||
};
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue