|
@@ -59,7 +59,7 @@ export function saferEvalNoReturn(expression, dataContext, additionalHelperVaria
|
|
}
|
|
}
|
|
|
|
|
|
export function isXAttr(attr) {
|
|
export function isXAttr(attr) {
|
|
- const xAttrRE = /x-(on|bind|data|text|model)/
|
|
|
|
|
|
+ const xAttrRE = /x-(on|bind|data|text|model|cloak)/
|
|
|
|
|
|
return xAttrRE.test(attr.name)
|
|
return xAttrRE.test(attr.name)
|
|
}
|
|
}
|
|
@@ -68,7 +68,7 @@ export function getXAttrs(el, type) {
|
|
return Array.from(el.attributes)
|
|
return Array.from(el.attributes)
|
|
.filter(isXAttr)
|
|
.filter(isXAttr)
|
|
.map(attr => {
|
|
.map(attr => {
|
|
- const typeMatch = attr.name.match(/x-(on|bind|data|text|model)/)
|
|
|
|
|
|
+ const typeMatch = attr.name.match(/x-(on|bind|data|text|model|cloak)/)
|
|
const valueMatch = attr.name.match(/:([a-zA-Z\-]+)/)
|
|
const valueMatch = attr.name.match(/:([a-zA-Z\-]+)/)
|
|
const modifiers = attr.name.match(/\.[^.\]]+(?=[^\]]*$)/g) || []
|
|
const modifiers = attr.name.match(/\.[^.\]]+(?=[^\]]*$)/g) || []
|
|
|
|
|