New issue
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
fix(TemplateParser): report empty expression #10391
Conversation
@@ -234,6 +234,12 @@ class TemplateParseVisitor implements html.Visitor { | |||
|
|||
private _parseAction(value: string, sourceSpan: ParseSourceSpan): ASTWithSource { | |||
const sourceInfo = sourceSpan.start.toString(); | |||
|
|||
if (!value || value == '') { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about (foo)=" "
- I mean - we should also catch whitespaces. More generally I thought that this check needs to be done later, when the expression is parsed and we know if this is a valid action expression or not.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point, thanks !
lgtm |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
fixes #3754