camunda / feel-scala

FEEL parser and interpreter written in Scala
https://camunda.github.io/feel-scala/
Apache License 2.0
123 stars 50 forks source link

Fail to parse expression with NBSP character #840

Closed saig0 closed 1 month ago

saig0 commented 5 months ago

Describe the bug The engine fails to parse an expression with a NBSP (Non-breaking Space) character.

To Reproduce Steps to reproduce the behavior:

  1. Parse an expression with a NBSP character (<0xa0>)
  2. Verify that the parsing failed
"The engine" should "evaluate expression wirth NBSP character" in {
    evaluateExpression("1 +   2") should returnResult(3)
  }

Expected behavior The engine can parse expressions with NBSP characters. It should be interpreted as whitespace.

image

Environment