From e76fc95e44d51a51cb242d29680557bec5a6e65a Mon Sep 17 00:00:00 2001 From: virusdefender <1670873886@qq.com> Date: Mon, 14 Sep 2015 01:06:54 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20js=20=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E8=8E=B7=E5=8F=96=E4=B8=8D=E5=85=A8=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tools/template_js_path.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tools/template_js_path.py b/tools/template_js_path.py index 1b92be5..aaee2d9 100644 --- a/tools/template_js_path.py +++ b/tools/template_js_path.py @@ -15,10 +15,9 @@ for root, dirs, files in os.walk(template_src_path): for name in files: html_path = os.path.join(root, name) html_content = open(html_path, "r").read() - r = re.search(re.compile(''), html_content) - + r = re.findall(re.compile(''), html_content) if r: - for item in r.groups(): + for item in r: if item and "app" in item: total_file.append(item)