pongo2 icon indicating copy to clipboard operation
pongo2 copied to clipboard

lexical string comparison

Open pierrre opened this issue 3 years ago • 1 comments

I think we should implement lexical string comparison for the >/</>=/<= operators, instead of trying to parse them as integer. Currently the string comparison is inconsistent, because we attempt to parse the string to an integer. The result is not the same at all if the string contains an integer or something else. Jinja2, Django and Twig all use lexical comparison for these operators. WDYT ?

pierrre avatar Apr 01 '21 08:04 pierrre

Hello ! Any news about that ? Does it seem to be a reasonable behavior ?

pierrre avatar Apr 13 '21 11:04 pierrre