Sam Ford 31cf8b43a9
livecheck: support trailing comments in watchlist
I ran `brew livecheck` today to check the packages in my watchlist
and realized that it wasn't checking one package because I had added
a trailing comment after the name (and `package # Comment` isn't a
valid package name). I thought we had added support for trailing
comments when we originally added comment support years back but I
must have been mistaken.

This adds support for trailing comments in livecheck watchlist files
as part of refactoring the watchlist line parsing logic to only use
one pass (instead of multiple `#map` and `#reject` calls). This
maintains the existing behavior, where blank lines and lines starting
with `#` are skipped, but does so in a more flexible manner. For
example, the existing logic wouldn't skip a comment line that has one
or more spaces before the `#` character but this new logic will
correctly skip it.
2025-09-03 09:10:58 -04:00
..
2025-08-16 00:54:50 -04:00
2025-08-25 10:07:17 -04:00
2025-08-05 17:13:42 -04:00
2024-08-15 11:47:31 -04:00
2025-08-12 17:04:15 -04:00
2025-06-17 16:34:19 +01:00
2025-05-08 13:41:11 -07:00
2024-07-15 14:49:23 -04:00
2024-03-29 18:53:07 -07:00
2025-08-22 14:33:20 +01:00
2025-08-04 13:11:15 -07:00
2025-09-02 15:55:09 +08:00
2024-07-04 13:45:42 +01:00