Skip to content

Commit

Permalink
Fixed issue with incorrectly identifying unused images
Browse files Browse the repository at this point in the history
  • Loading branch information
kgodey committed Jan 20, 2022
1 parent 49149f1 commit 95b0c95
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/util/links.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ def resolve_wiki_link(link, file):
"""
Converts wiki.js link to usable local path
"""
# Remove styling that might be part of image links
link = link.split(" ")[0]
# Remove styling that might be part of image links (e.g. "x.png =240x")
link = link.split(" =")[0]
# Remove fragments if they exist
link = link.split("#")[0]
# Add .md extension is there is no extension
Expand Down

0 comments on commit 95b0c95

Please sign in to comment.