Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: handle additional broken macro definitions #1180

Merged
merged 2 commits into from
Oct 28, 2024
Merged

fix: handle additional broken macro definitions #1180

merged 2 commits into from
Oct 28, 2024

Conversation

fzipi
Copy link
Member

@fzipi fzipi commented Oct 27, 2024

what

  • fix macro parsing to handle additional border cases

why

@fzipi fzipi requested a review from a team as a code owner October 27, 2024 00:47
@fzipi fzipi marked this pull request as draft October 27, 2024 02:09
Signed-off-by: Felipe Zipitria <felipe.zipitria@owasp.org>
@jcchavezs
Copy link
Member

thanks for this @fzipi would you mind isolating the fix in this PR and move the other enhancements into another PR?

@fzipi
Copy link
Member Author

fzipi commented Oct 28, 2024

@jcchavezs moved additional fixes to #1181

@fzipi fzipi marked this pull request as ready for review October 28, 2024 12:51
@fzipi fzipi enabled auto-merge (squash) October 28, 2024 13:17
Copy link
Member

@jcchavezs jcchavezs left a comment

Choose a reason for hiding this comment

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

LGTM

@fzipi fzipi merged commit abf359e into main Oct 28, 2024
6 checks passed
@fzipi fzipi deleted the fix-macro branch October 28, 2024 20:30
m.tokens = append(m.tokens, macroToken{
text: currentToken.String(),
variable: variables.Unknown,
key: "",
})
currentToken.Reset()
Copy link
Member

Choose a reason for hiding this comment

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

wonder about this change although I know tests passes.

Copy link
Member Author

Choose a reason for hiding this comment

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

We can revert it if too much uncertainty.

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.

Crash if a rule ends with a %
2 participants