diff --git a/linkcheck/checker/fileurl.py b/linkcheck/checker/fileurl.py index 45a345b4..940f86e3 100644 --- a/linkcheck/checker/fileurl.py +++ b/linkcheck/checker/fileurl.py @@ -75,7 +75,7 @@ def is_absolute_path (path): with a drive letter. On all other systems absolute paths start with a slash.""" if os.name == 'nt': - re.search(r"^[a-zA-Z]:", path) + return re.search(r"^[a-zA-Z]:", path) return path.startswith("/")