mirror of
https://github.com/gorhill/uBlock.git
synced 2024-09-03 09:39:38 +02:00
Minor change to regex
This commit is contained in:
parent
e50d6ee6ed
commit
2c7d91ba57
@ -173,7 +173,7 @@ const renderFilterLists = ( ) => {
|
|||||||
const listEntries = dom.clone('#templates .listEntries');
|
const listEntries = dom.clone('#templates .listEntries');
|
||||||
const treeEntries = Object.entries(listTree);
|
const treeEntries = Object.entries(listTree);
|
||||||
if ( depth !== 0 ) {
|
if ( depth !== 0 ) {
|
||||||
const reEmojis = /[\p{Emoji}]/gu;
|
const reEmojis = /\p{Emoji}+/gu;
|
||||||
treeEntries.sort((a ,b) => {
|
treeEntries.sort((a ,b) => {
|
||||||
const as = (a[1].title || a[0]).replace(reEmojis, '');
|
const as = (a[1].title || a[0]).replace(reEmojis, '');
|
||||||
const bs = (b[1].title || b[0]).replace(reEmojis, '');
|
const bs = (b[1].title || b[0]).replace(reEmojis, '');
|
||||||
|
Loading…
Reference in New Issue
Block a user