mirror of
https://github.com/Sevichecc/Urara-Blog.git
synced 2025-05-02 22:59:31 +08:00
14 lines
206 B
Text
14 lines
206 B
Text
module.exports = {
|
|
prefix(prop) {
|
|
let match = prop.match(/^(-\w+-)/)
|
|
if (match) {
|
|
return match[0]
|
|
}
|
|
|
|
return ''
|
|
},
|
|
|
|
unprefixed(prop) {
|
|
return prop.replace(/^-\w+-/, '')
|
|
}
|
|
}
|