microsoft / winget-create

The Windows Package Manager Manifest Creator command-line tool (aka wingetcreate)
MIT License
491 stars 84 forks source link

Installer URL With a Whitespace is not trimmed properly #350

Closed Trenly closed 1 year ago

Trenly commented 1 year ago

Brief description of your issue

When an installer URL has leading whitespace, the whitespace is not trimmed, and a manifest validation error is thrown.

Steps to reproduce

Have a URL with a blank space in the first position.

Expected behavior

The whitespace would be trimmed.

Actual behavior

Validation error is thrown

Environment