From 5860d858c4e01b1690d31cd131170d8b6f72ff0e Mon Sep 17 00:00:00 2001 From: Marcelo Jr Date: Mon, 3 Feb 2020 09:34:26 +0100 Subject: [PATCH] fix: wrong value comparition on tag case --- src/compiler/compile/Component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/compile/Component.ts b/src/compiler/compile/Component.ts index 587dfcdfd9..6f5330db5e 100644 --- a/src/compiler/compile/Component.ts +++ b/src/compiler/compile/Component.ts @@ -1357,7 +1357,7 @@ function process_component_options(component: Component, nodes) { if (typeof value !== 'string' && value !== null) component.error(attribute, { code, message }); - if (value === 'tag') { + if (name === 'tag') { if (value && !/^[a-zA-Z][a-zA-Z0-9]*-[a-zA-Z0-9-]+$/.test(value)) { component.error(attribute, { code: `invalid-tag-property`,