[FIX] qweb: add support for "in " operator in expressions

closes #603
This commit is contained in:
Géry Debongnie
2020-01-08 14:23:18 +01:00
committed by aab-odoo
parent 0af46bc123
commit 55889febd5
2 changed files with 8 additions and 1 deletions
+1 -1
View File
@@ -81,7 +81,7 @@ const STATIC_TOKEN_MAP: { [key: string]: TKind } = {
// note that the space after typeof is relevant. It makes sure that the formatted
// expression has a space after typeof
const OPERATORS = "...,.,===,==,+,!==,!=,!,||,&&,>=,>,<=,<,?,-,*,/,%,typeof ,=>,=,;".split(",");
const OPERATORS = "...,.,===,==,+,!==,!=,!,||,&&,>=,>,<=,<,?,-,*,/,%,typeof ,=>,=,;,in ".split(",");
type Tokenizer = (expr: string) => Token | false;