From b7b86d46ad6ae6330c3f8691eddd44378a79aa6b Mon Sep 17 00:00:00 2001 From: kjj6198 Date: Tue, 28 Apr 2020 01:43:16 +0900 Subject: [PATCH] add missing `:` --- src/compiler/compile/nodes/Element.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/compile/nodes/Element.ts b/src/compiler/compile/nodes/Element.ts index 89450384af..a07cef485f 100644 --- a/src/compiler/compile/nodes/Element.ts +++ b/src/compiler/compile/nodes/Element.ts @@ -428,7 +428,7 @@ export default class Element extends Node { if (attribute) { const value = attribute.get_static_value(); - if (value === '' || value === '#' || /^\W*?javascript/.test(value)) { + if (value === '' || value === '#' || /^\W*javascript:/.test(value)) { component.warn(attribute, { code: `a11y-invalid-attribute`, message: `A11y: '${value}' is not a valid ${attribute.name} attribute`