Theming API: Refactor

pull/5507/head
mertsincan 2024-03-28 13:14:04 +00:00
parent 468106cfb8
commit 887c7bc86b
1 changed files with 1 additions and 1 deletions

View File

@ -119,7 +119,7 @@ export default {
const path = v.replace(/{|}/g, '');
const keys = path.split('.').filter((_v) => !excludedKeyRegexes.some((_r) => this.test(_r, _v)));
return `var(${this.getVariableName(prefix, this.toKebabCase(keys.join('-')))}${fallback ? `,${fallback}` : ''})`;
return `var(${this.getVariableName(prefix, this.toKebabCase(keys.join('-')))}${this.isNotEmpty(fallback) ? `, ${fallback}` : ''})`;
});
const calculationRegex = /(\d+\s+[\+\-\*\/]\s+\d+)/g;