diff --git a/path_fixer.py b/path_fixer.py index 349a828e21..43f4869805 100644 --- a/path_fixer.py +++ b/path_fixer.py @@ -21,7 +21,7 @@ def extract_hrefs_and_srcs(folder_path): with open(file_path, 'r') as f: content = f.read() - new_content = re.sub(r'(href|src)="(/)', r'\1="https://baloola.github.io/sudan-house/', content) + 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: