Skip to content

Commit

Permalink
fix a typo
Browse files Browse the repository at this point in the history
  • Loading branch information
baloola committed Aug 24, 2024
1 parent 7038867 commit 572aab6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion path_fixer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 572aab6

Please sign in to comment.