mirror of https://github.com/gorhill/uBlock.git
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