diff --git a/path_fixer.py b/path_fixer.py index 12e53bbc71..349a828e21 100644 --- a/path_fixer.py +++ b/path_fixer.py @@ -22,9 +22,10 @@ def extract_hrefs_and_srcs(folder_path): content = f.read() new_content = re.sub(r'(href|src)="(/)', r'\1="https://baloola.github.io/sudan-house/', content) + final_content = re.sub(r'url\(\/static', 'url(https://baloola.github.io/sudan-house/static', new_content) with open(file_path, 'w') as f: - f.write(new_content) + f.write(final_content) return hrefs_and_srcs