Skip to content

Conversation

@hmazter
Copy link
Contributor

@hmazter hmazter commented Feb 6, 2026

Updating the stricter regex, that was introduced in #58367, to allow for negative ranges ([-5,-1]) and for "negative infinite" ranges ([*,-1]).

The current regex only allows positive numbers at the first position in the range.
This updates allow negative numbers and * as well.

Fixes: #58446

Updating the stricter regex, that was introduced in laravel#58367, to allow for negative ranges (`[-5,-1]`) and for "negative infinite" ranges (`[*,-1]`)

Fixes: laravel#58446
@taylorotwell taylorotwell merged commit 86c83d6 into laravel:12.x Feb 6, 2026
72 checks passed
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.

trans_choice with negative range does not work anymore

2 participants