模块优化

This commit is contained in:
Jing Ling
2020-08-11 15:36:32 +08:00
parent b7e9c7e781
commit e668ebfbd5
2 changed files with 14 additions and 7 deletions
+8 -2
View File
@@ -617,5 +617,11 @@
"ramdajs.js",
"formstone.js",
"tether.js",
"upup.js"
]
"upup.js",
"iconfont.js",
"iconfont2.js",
"jwplayer.js",
"polyfills.js",
"md5.js",
"mifihybrid.js"
]
+6 -5
View File
@@ -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