We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When I define a policy, the != symbol is replaced by not=
I tested it with an online editor and it was normal, but it might be because it is a nodejs version
I got an error when using it in Python code. I checked the source code and it is probably caused by here. It replaces all '!' with 'not'
` @staticmethod def _get_expression(expr, functions=None): expr = expr.replace("&&", "and") expr = expr.replace("||", "or") expr = expr.replace("!", "not")
return SimpleEval(expr, functions)
`
Is there any good solution? Thanks
The text was updated successfully, but these errors were encountered:
No branches or pull requests
When I define a policy, the != symbol is replaced by not=
I tested it with an online editor and it was normal, but it might be because it is a nodejs version

I got an error when using it in Python code. I checked the source code and it is probably caused by here. It replaces all '!' with 'not'
`
@staticmethod
def _get_expression(expr, functions=None):
expr = expr.replace("&&", "and")
expr = expr.replace("||", "or")
expr = expr.replace("!", "not")
`
Is there any good solution? Thanks
The text was updated successfully, but these errors were encountered: