microsoft / regorus

Regorus - A fast, lightweight Rego (OPA policy language) interpreter written in Rust.
MIT License
130 stars 32 forks source link

Make unary `-` operator OPA compatible. #175

Closed anakrish closed 6 months ago

anakrish commented 6 months ago

OPA supports unary - operator only in the following cases: -\s+numeric literal

We match OPAs behavior for now. This can be revisited later.

Closes #174