camunda / feel-scala

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

feat: add trim() function for whitespace stripping #826

Closed skayliu closed 2 months ago

skayliu commented 2 months ago

Description

Add the following built-in function trim()

// examples
trim("hello world")    // --> "hello world"
trim("hello world  ")    // --> "hello world"
trim("  hello world")    // --> "hello world"
trim("  hello world  ")    // --> "hello world"
trim(" hello   world ")    // --> "hello   world"

Related issues

closes #815

skayliu commented 2 months ago

Hey, @saig0, Please take a moment to check this build-in function, thank you.