From ee18ee36e199817c902fc266f7aa77fa928c6f10 Mon Sep 17 00:00:00 2001 From: Florent Fayolle Date: Mon, 29 Oct 2018 21:26:34 +0100 Subject: [PATCH] adl-submit.py: use in order to load remote resources in preview --- public/adl-submit.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/adl-submit.py b/public/adl-submit.py index 598f5a7b..a86f357e 100755 --- a/public/adl-submit.py +++ b/public/adl-submit.py @@ -356,7 +356,7 @@ def SubmitEvent(event, testOutputFile): sys.exit(0) fp = open(testOutputFile, "w") s = contents.getvalue().decode() - s = re.sub(r'href="([A-Za-z0-9]*).css"', r'href="'+baseUrl+'\1.css"', s) + s = re.sub(r'', r'\g<0>' % baseUrl, s, flags=re.IGNORECASE) fp.write(s) fp.close()