Skip to content

fix(native): validate range content at parse time#19

Open
phdavis1027 wants to merge 1 commit intodryruby:developfrom
phdavis1027:fix-native-range-parsing
Open

fix(native): validate range content at parse time#19
phdavis1027 wants to merge 1 commit intodryruby:developfrom
phdavis1027:fix-native-range-parsing

Conversation

@phdavis1027
Copy link

The native parser'ss terminal method accepted any content between [ and ] without validation. This meant invalid ranges like [-abc] were silently accepted instead of raising SyntaxError, despite the RANGE regex in terminals.rb correctly rejecting them.

The native parser'ss terminal method accepted any content between [
and ] without validation. This meant invalid ranges like [-abc]
were silently accepted instead of raising SyntaxError, despite the
RANGE regex in terminals.rb correctly rejecting them.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant