diff --git a/src/utils/checkTemplate.js b/src/utils/checkTemplate.js index fe7cc93..7a14762 100644 --- a/src/utils/checkTemplate.js +++ b/src/utils/checkTemplate.js @@ -49,7 +49,7 @@ export default function($options, checkVariableAvailability) { const templateVars = []; if (templateAst.type === ELEMENT) { templateAst.props.forEach((attr) => { - if (!/^[a-z-]+$/g.test(attr.name)) { + if (!/^[a-z-:]+$/g.test(attr.name)) { throw new VueLiveParseTemplateAttrError( "[VueLive] Invalid attribute name: " + attr.name, attr.loc