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 efbcb69 commit 3b82574Copy full SHA for 3b82574
src/templateBananaInBoxRule.ts
@@ -5,7 +5,7 @@ import { SourceFile } from 'typescript';
5
import { NgWalker, NgWalkerConfig } from './angular/ngWalker';
6
import { BasicTemplateAstVisitor } from './angular/templates/basicTemplateAstVisitor';
7
8
-const INVALID_BOX = /^\[(?!\()(.*)(?<!\))\]$/;
+const INVALID_PATTERN = /\[(.*)\]/;
9
const VALID_CLOSE_BOX = ')]';
10
const VALID_OPEN_BOX = '[(';
11
@@ -38,7 +38,7 @@ class TemplateVisitorCtrl extends BasicTemplateAstVisitor {
38
}
39
40
private validateEvent(ast: BoundEventAst): void {
41
- const matches = ast.name.match(INVALID_BOX);
+ const matches = ast.name.match(INVALID_PATTERN);
42
43
if (!matches) return;
44
0 commit comments