From e668ebfbd5c56bca1e044807743757839671bc16 Mon Sep 17 00:00:00 2001 From: Jing Ling Date: Tue, 11 Aug 2020 15:36:32 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A8=A1=E5=9D=97=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- data/common_js_library.json | 10 ++++++++-- modules/finder.py | 11 ++++++----- 2 files changed, 14 insertions(+), 7 deletions(-) diff --git a/data/common_js_library.json b/data/common_js_library.json index 424fe50..1abd94b 100644 --- a/data/common_js_library.json +++ b/data/common_js_library.json @@ -617,5 +617,11 @@ "ramdajs.js", "formstone.js", "tether.js", - "upup.js" -] \ No newline at end of file + "upup.js", + "iconfont.js", + "iconfont2.js", + "jwplayer.js", + "polyfills.js", + "md5.js", + "mifihybrid.js" +] diff --git a/modules/finder.py b/modules/finder.py index b26547a..0dbc65a 100644 --- a/modules/finder.py +++ b/modules/finder.py @@ -101,10 +101,11 @@ def filter_name(path, black_name): for name in black_name: if path.endswith(name): return True - black_ext = ['io.js', 'ui.js', 'fp.js', 'en.js', 'dev.js', 'min.js', 'umd.js', - 'esm.js', 'all.js', 'cjs.js', 'prod.js', 'slim.js', 'core.js', - 'global.js', 'bundle.js', 'browser.js', 'brands.js', 'simple.js', - 'common.js', 'development.js', 'production.js'] + black_ext = ['io.js', 'ui.js', 'fp.js', 'en.js', 'en-us,js', 'zh.js', 'zh-cn.js', + 'zh_cn.js', 'dev.js', 'min.js', 'umd.js', 'esm.js', 'all.js', 'cjs.js', 'prod.js', + 'slim.js', 'core.js', 'global.js', 'bundle.js', 'browser.js', + 'brands.js', 'simple.js', 'common.js', 'development.js', 'banner.js', + 'production.js'] for ext in black_ext: if path.endswith(ext): return True @@ -143,7 +144,7 @@ def get_black_name(): def match_subdomains(domain, text): - subdomains = utils.match_subdomains(domain, text) + subdomains = utils.match_subdomains(domain, text, fuzzy=False) logger.log('DEBUG', f'matched subdomains: {subdomains}') return subdomains