---
synopsis: "Report trailing spaces in project import URIs"
packages: [cabal-install, cabal-install-solver]
prs: 10629
issues: 10622
---

> A string is a valid URL potentially surrounded by spaces if, after stripping
> leading and trailing whitespace from it, it is a valid URL."
> SOURCE: [W3C/HTML5/URLs](https://www.w3.org/TR/2010/WD-html5-20100624/urls.html)

Fixes a problem of mistaking a URI for a file path when it has trailing spaces
and warn about such trailing spaces.
