posit-dev / publisher

MIT License
5 stars 1 forks source link

handle whitespace-only lines in requirements.txt #2040

Closed mmarchetti closed 3 months ago

mmarchetti commented 3 months ago

Intent

Fixes #2033

Type of Change

Approach

Update the comment-ignoring regexp to handle lines that are all whitespace.

Automated Tests

Updated existing unit test to catch this.

Directions for Reviewers

Have a whitespace-only line in requirements.txt. It shouldn't show up in the Python Packages view.