Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Handle dot index#36

Closed
arielkru wants to merge 7 commits into
amplify-education:masterfrom
bridgecrewio:handle_dot_index
Closed

Handle dot index#36
arielkru wants to merge 7 commits into
amplify-education:masterfrom
bridgecrewio:handle_dot_index

Conversation

@arielkru

@arielkru arielkru commented Jul 19, 2020

Copy link
Copy Markdown
Contributor

Handle index pattern .int in addition to [int]

Solves bridgecrewio/checkov#355

@aoskotsky-amplify

@schosterbarak

Copy link
Copy Markdown

Hi @jconstance-amplify , @aoskotsky-amplify
any chance you can take a look at this one?

Comment thread hcl2/hcl2.lark Outdated
attr_splat_expr_term : expr_term attr_splat
full_splat_expr_term : expr_term full_splat
index : "[" new_line_or_comment? expression new_line_or_comment? "]"
index : "[" new_line_or_comment? expression new_line_or_comment? "]" | "." DECIMAL

@hi117 hi117 Jul 27, 2020

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be DECIMAL+ since there might be lists of length greater than 10

@rarruda

rarruda commented Aug 18, 2020

Copy link
Copy Markdown

It would be awesome if it was possible to get a release with this fix... Would solve some issues I am currently facing when using this library.

@aoskotsky-amplify

Copy link
Copy Markdown
Member

Hey, thanks for the PR. I pulled it and cleaned a few things up in a new one #44. I'll have it merged soon

@aoskotsky-amplify

Copy link
Copy Markdown
Member

Should be fixed now with #44. Let me know if there are any issues

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.

5 participants