Skip to main content

is_valid_expr

Function is_valid_expr 

Source
pub fn is_valid_expr(expression: &str) -> bool
Expand description

Performs basic structural validation of a runtime expression.

Checks that:

  • If the expression starts with ${, it must end with }
  • The expression is not empty after sanitization
  • Basic bracket matching