Skip to content

Commit

Permalink
fix p38
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderDokuchaev committed Mar 9, 2024
1 parent b9cf68d commit eb38c63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion md_dead_link_check/link_checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ def check_path_links(
continue
else:
# Not markdown file
if not any(f.is_relative_to(rel_path) for f in files_in_repo):
if not any(f.as_posix().startswith(rel_path.as_posix()) for f in files_in_repo):
if rel_path.exists():
ret.append(StatusInfo(md_link, "File does not added to repository"))
else:
Expand Down

0 comments on commit eb38c63

Please sign in to comment.