mirror of
https://github.com/shmilylty/OneForAll.git
synced 2026-10-25 00:56:14 +08:00
模块优化
This commit is contained in:
@@ -617,5 +617,11 @@
|
|||||||
"ramdajs.js",
|
"ramdajs.js",
|
||||||
"formstone.js",
|
"formstone.js",
|
||||||
"tether.js",
|
"tether.js",
|
||||||
"upup.js"
|
"upup.js",
|
||||||
]
|
"iconfont.js",
|
||||||
|
"iconfont2.js",
|
||||||
|
"jwplayer.js",
|
||||||
|
"polyfills.js",
|
||||||
|
"md5.js",
|
||||||
|
"mifihybrid.js"
|
||||||
|
]
|
||||||
|
|||||||
+6
-5
@@ -101,10 +101,11 @@ def filter_name(path, black_name):
|
|||||||
for name in black_name:
|
for name in black_name:
|
||||||
if path.endswith(name):
|
if path.endswith(name):
|
||||||
return True
|
return True
|
||||||
black_ext = ['io.js', 'ui.js', 'fp.js', 'en.js', 'dev.js', 'min.js', 'umd.js',
|
black_ext = ['io.js', 'ui.js', 'fp.js', 'en.js', 'en-us,js', 'zh.js', 'zh-cn.js',
|
||||||
'esm.js', 'all.js', 'cjs.js', 'prod.js', 'slim.js', 'core.js',
|
'zh_cn.js', 'dev.js', 'min.js', 'umd.js', 'esm.js', 'all.js', 'cjs.js', 'prod.js',
|
||||||
'global.js', 'bundle.js', 'browser.js', 'brands.js', 'simple.js',
|
'slim.js', 'core.js', 'global.js', 'bundle.js', 'browser.js',
|
||||||
'common.js', 'development.js', 'production.js']
|
'brands.js', 'simple.js', 'common.js', 'development.js', 'banner.js',
|
||||||
|
'production.js']
|
||||||
for ext in black_ext:
|
for ext in black_ext:
|
||||||
if path.endswith(ext):
|
if path.endswith(ext):
|
||||||
return True
|
return True
|
||||||
@@ -143,7 +144,7 @@ def get_black_name():
|
|||||||
|
|
||||||
|
|
||||||
def match_subdomains(domain, text):
|
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}')
|
logger.log('DEBUG', f'matched subdomains: {subdomains}')
|
||||||
return subdomains
|
return subdomains
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user