Update src/compiler/parse/read/style.ts

Co-authored-by: Yuichiro Yamashita <xydybaseball@gmail.com>
pull/8303/head
Simon H 4 years ago committed by GitHub
parent 1fa8dc4b29
commit 31741dbe19
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -7,7 +7,7 @@ import { Style } from '../../interfaces';
import parser_errors from '../errors'; import parser_errors from '../errors';
const regex_closing_style_tag = /<\/style\s*>/; 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 { export default function read_style(parser: Parser, start: number, attributes: Node[]): Style {
const content_start = parser.index; const content_start = parser.index;

Loading…
Cancel
Save