INNER CODE UNIT · JavaScript
ext
presenta-software/presenta-lib · src/blocks/text/index.js:39
const ext = s.match(/rem|px/mig)
if (ext) {
res.u = ext[0]
res.v = s.replace(ext[0], '')
}
if (!(Number(res.v) > 0)) {
res.v = null
} else {
res.v = +res.v
}
return res
}
const text = function (el, config) {
const that = this
return new Promise((resolve, reject) => {
const html = config.content || ''