Skip to content

Conversation

@refi64
Copy link
Contributor

@refi64 refi64 commented May 23, 2025

Back in #11, I derived the overall structure of the resulting match block from combining the tilde / end-of-string comparisons from the former one + the tilde alphanumeric comparisons from compare_char. Unfortunately, in the process, an important case got omitted: comparing any character on the left to a tilde on the right, which was incorrectly replaced with comparing to end-of-string on the left.

This restores the correct match branch, as well as regrouping the comparisons and adding extra comments for readability.

Back in indygreg#11, I derived the overall structure of the resulting `match`
block from combining the tilde / end-of-string comparisons from the
former one + the tilde alphanumeric comparisons from `compare_char`.
Unfortunately, in the process, an important case got omitted: comparing
any character on the left to a tilde on the right, which was incorrectly
replaced with comparing to end-of-string on the left.

This restores the correct match branch, as well as regrouping the
comparisons and adding extra comments for readability.

Signed-off-by: Ryan Gonzalez <[email protected]>
refi64 added a commit to collabora/aptly-rest-tools that referenced this pull request May 27, 2025
The original goal was to update linux-packaging-rs to instead point to
indygreg/linux-packaging-rs#27, but that caused
some dependency conflicts, so it's easier to just update everything in
one go.

Signed-off-by: Ryan Gonzalez <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant