Skip to content

fix: do not pass whitespace-only strings to Calculator expr evaluation lib#532

Merged
RainyNight9 merged 1 commit intomainfrom
fix/calculator_panic
May 19, 2025
Merged

fix: do not pass whitespace-only strings to Calculator expr evaluation lib#532
RainyNight9 merged 1 commit intomainfrom
fix/calculator_panic

Conversation

@SteveLauC
Copy link
Copy Markdown
Member

What does this PR do

The math expression evaluation library we use will panic if the passed query string is a string with only whitespace. After this PR, we no longer pass such strings to it.

Rationale for this change

Standards checklist

  • The PR title is descriptive
  • The commit messages are semantic
  • Necessary tests are added
  • Updated the release notes
  • Necessary documents have been added if this is a new feature
  • Performance tests checked, no obvious performance degradation

@RainyNight9 RainyNight9 merged commit 7eccf99 into main May 19, 2025
@RainyNight9 RainyNight9 deleted the fix/calculator_panic branch May 19, 2025 11:24
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.

2 participants