Skip to content

Commit

Permalink
Minor change to regex
Browse files Browse the repository at this point in the history
  • Loading branch information
gorhill committed May 21, 2023
1 parent e50d6ee commit 2c7d91b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/3p-filters.js
Original file line number Diff line number Diff line change
Expand Up @@ -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, '');
Expand Down

0 comments on commit 2c7d91b

Please sign in to comment.