chore(compiler-dom): changed function to arrow function (#487)
This commit is contained in:
parent
c9d709cdf3
commit
be4c22e423
@ -35,7 +35,7 @@ const propertyDelimiterRE = /:(.+)/
|
||||
|
||||
function parseInlineCSS(cssText: string): Record<string, string> {
|
||||
const res: Record<string, string> = {}
|
||||
cssText.split(listDelimiterRE).forEach(function(item) {
|
||||
cssText.split(listDelimiterRE).forEach(item => {
|
||||
if (item) {
|
||||
const tmp = item.split(propertyDelimiterRE)
|
||||
tmp.length > 1 && (res[tmp[0].trim()] = tmp[1].trim())
|
||||
|
Loading…
x
Reference in New Issue
Block a user