Skip to content

Commit 98836bf

Browse files
authored
Merge pull request #60 from adriankremer/feat-improve-attribute-checks
feat: updated regex validation of element attributes to enable 'aria-…
2 parents ecdf6d5 + aaa0b06 commit 98836bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/checkTemplate.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export default function($options, checkVariableAvailability) {
4949
const templateVars = [];
5050
if (templateAst.type === ELEMENT) {
5151
templateAst.props.forEach((attr) => {
52-
if (!/^[a-z,-,:]+$/g.test(attr.name)) {
52+
if (!/^[a-z-:]+$/g.test(attr.name)) {
5353
throw new VueLiveParseTemplateAttrError(
5454
"[VueLive] Invalid attribute name: " + attr.name,
5555
attr.loc

0 commit comments

Comments
 (0)