Youssef1313 / markdown-links-verifier

A GitHub Action to validate links in Markdown files
MIT License
4 stars 1 forks source link

ArgumentException for empty path #11

Closed Youssef1313 closed 3 years ago

Youssef1313 commented 3 years ago

Unhandled exception. System.ArgumentException: The path is empty. (Parameter 'path')

   at System.IO.Path.GetRelativePath(String relativeTo, String path, StringComparison comparisonType)
   at System.IO.Path.GetRelativePath(String relativeTo, String path)
   at MarkdownLinksVerifier.LinkValidator.LocalLinkValidator.IsValid(String link) in /src/LinkValidator/LocalLinkValidator.cs:line 12
   at <Program>$.<<Main>$>d__0.MoveNext() in /src/Program.cs:line 16
--- End of stack trace from previous location ---
   at <Program>$.<Main>(String[] args)

Most likely, this happens for [link]().