diff --git a/lib/utils/filter.ts b/lib/utils/filter.ts index 075b41db5..d2009f275 100644 --- a/lib/utils/filter.ts +++ b/lib/utils/filter.ts @@ -38,6 +38,7 @@ export const useRegexp = (regexp: RegExp): NodeNameFilterType => { export const netflixFilter: NodeNameFilterType = item => { return [ 'netflix', + 'nf', 'hkbn', 'hkt', 'hgc', diff --git a/test/utils/filter.test.ts b/test/utils/filter.test.ts index 6aa2c7c96..8e42f1dfd 100644 --- a/test/utils/filter.test.ts +++ b/test/utils/filter.test.ts @@ -72,6 +72,14 @@ test('netflixFilter', t => { nodeName: 'HK', type: NodeTypeEnum.Shadowsocks, })); + t.true(filter.netflixFilter({ + nodeName: 'HK NF', + type: NodeTypeEnum.Shadowsocks, + })); + t.true(filter.netflixFilter({ + nodeName: 'HK Netflix', + type: NodeTypeEnum.Shadowsocks, + })); }); test('youtubePremiumFilter', t => {