Update src/compiler/parse/state/tag.ts

Co-authored-by: Yosuke Ota <otameshiyo23@gmail.com>
pull/7663/head
Mathias Picker 4 years ago committed by GitHub
parent 2453bf948e
commit 166978bdf9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -10,7 +10,7 @@ import read_style from '../read/style';
import { closing_tag_omitted, decode_character_references } from '../utils/html';
// characters equivalent to using \s in regex
const whitespace_characters = ['\r', '\n', '\t', '\f', '\v', ' ', '\u00a0', '\u1680', '\u2000-', '\u200a', '\u2028', '\u2029', '\u202f', '\u205f', '\u3000', '\ufeff'];
const whitespace_characters = ['\r', '\n', '\t', '\f', '\v', ' ', '\u00a0', '\u1680', '\u2000', '\u2001', '\u2002', '\u2003', '\u2004', '\u2005', '\u2006', '\u2007', '\u2008', '\u2009', '\u200a', '\u2028', '\u2029', '\u202f', '\u205f', '\u3000', '\ufeff'];
// eslint-disable-next-line no-useless-escape
const valid_tag_name = /^\!?[a-zA-Z]{1,}:?[a-zA-Z0-9\-]*/;

Loading…
Cancel
Save