mirror of
https://github.com/beetbox/beets.git
synced 2026-07-16 19:00:49 -04:00
The relative-date regex used character classes [+|-] and [y|m|w|d], which mistakenly treat | as a literal member rather than alternation. As a result a value like added:2000|2001 (as a user might type expecting | to mean "or") captured | as the relative-date unit and crashed with an uncaught KeyError in Period.parse instead of raising the documented InvalidQueryArgumentValueError. Remove the stray | from both character classes so malformed date strings fall through to the normal invalid-date error path. Co-Authored-By: Claude <noreply@anthropic.com>