We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dc94a5f commit 12e38baCopy full SHA for 12e38ba
ng-dev/pullapprove/condition_evaluator.ts
@@ -81,7 +81,7 @@ export function convertConditionToFunction(
81
*/
82
function transformExpressionToJs(expression: string): string {
83
return expression
84
- .replace(/^(.+)\s+not in\s+(\[.+\])$/, '!$2.some(x => $1.matchesAny || $1 == x)')
+ .replace(/^(.+)\s+not in\s+(\[.+\])$/, '!$2.includes($1)')
85
.replace(/^(.+)\s+in\s+(.+)$/, '$2.some(x => $1.matchesAny || $1 == x)')
86
.replace(/^(.+)\s+not in\s+(.+)$/, '!$2.includes($1)')
87
.replace(/^(.+)\s+in\s+(.+)$/, '$2.includes($1)')
0 commit comments