Snowfakery icon indicating copy to clipboard operation
Snowfakery copied to clipboard

Bug parsing negative numbers and whitespace

Open prescod opened this issue 5 years ago • 1 comments
trafficstars

- snowfakery_version: 2
- object: foo
  fields:
    a: ${{-1}}
    b: -1
    c: ${{3-4}}

prescod avatar Aug 19 '20 23:08 prescod

I guess it's working as designed

https://stackoverflow.com/questions/19401106/dashes-in-jinja-templates

The workaround is to put a space before the negative sign.

prescod avatar May 09 '23 19:05 prescod