From 31741dbe197eb1ed57589ada7ebe32ffb3fd94fb Mon Sep 17 00:00:00 2001 From: Simon H <5968653+dummdidumm@users.noreply.github.com> Date: Wed, 22 Feb 2023 10:38:43 +0100 Subject: [PATCH] Update src/compiler/parse/read/style.ts Co-authored-by: Yuichiro Yamashita --- src/compiler/parse/read/style.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/parse/read/style.ts b/src/compiler/parse/read/style.ts index 702271d125..3ed510c3d0 100644 --- a/src/compiler/parse/read/style.ts +++ b/src/compiler/parse/read/style.ts @@ -7,7 +7,7 @@ import { Style } from '../../interfaces'; import parser_errors from '../errors'; const regex_closing_style_tag = /<\/style\s*>/; -const regex_starts_with_closing_style_tag = /<\/style\s*>/; +const regex_starts_with_closing_style_tag = /^<\/style\s*>/; export default function read_style(parser: Parser, start: number, attributes: Node[]): Style { const content_start = parser.index;