mirror of
https://github.com/QingdaoU/OnlineJudge.git
synced 2024-09-21 08:23:20 +00:00
修复 js 文件获取不全的问题
This commit is contained in:
parent
1d087089ed
commit
e76fc95e44
@ -15,10 +15,9 @@ for root, dirs, files in os.walk(template_src_path):
|
|||||||
for name in files:
|
for name in files:
|
||||||
html_path = os.path.join(root, name)
|
html_path = os.path.join(root, name)
|
||||||
html_content = open(html_path, "r").read()
|
html_content = open(html_path, "r").read()
|
||||||
r = re.search(re.compile('<script src="(.*)"></script>'), html_content)
|
r = re.findall(re.compile('<script src="(.*)"></script>'), html_content)
|
||||||
|
|
||||||
if r:
|
if r:
|
||||||
for item in r.groups():
|
for item in r:
|
||||||
if item and "app" in item:
|
if item and "app" in item:
|
||||||
total_file.append(item)
|
total_file.append(item)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user