Minor change to regex

This commit is contained in:
Raymond Hill 2023-05-21 09:45:46 -04:00
parent e50d6ee6ed
commit 2c7d91ba57
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2
1 changed files with 1 additions and 1 deletions

View File

@ -173,7 +173,7 @@ const renderFilterLists = ( ) => {
const listEntries = dom.clone('#templates .listEntries');
const treeEntries = Object.entries(listTree);
if ( depth !== 0 ) {
const reEmojis = /[\p{Emoji}]/gu;
const reEmojis = /\p{Emoji}+/gu;
treeEntries.sort((a ,b) => {
const as = (a[1].title || a[0]).replace(reEmojis, '');
const bs = (b[1].title || b[0]).replace(reEmojis, '');