1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-07-08 12:57:57 +02:00

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

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, '');