14 lines
208 B
JavaScript
14 lines
208 B
JavaScript
module.exports = {
|
|
prefix (prop) {
|
|
let match = prop.match(/^(-\w+-)/)
|
|
if (match) {
|
|
return match[0]
|
|
}
|
|
|
|
return ''
|
|
},
|
|
|
|
unprefixed (prop) {
|
|
return prop.replace(/^-\w+-/, '')
|
|
}
|
|
}
|