fix by replacing - with _

pull/7123/head
GHOSt 5 years ago
parent 4d1d1861eb
commit d603fe01eb

@ -923,7 +923,7 @@ export default class ElementWrapper extends Wrapper {
const snippet = expression.manipulate(block); const snippet = expression.manipulate(block);
let cached_snippet; let cached_snippet;
if (should_cache) { if (should_cache) {
cached_snippet = block.get_unique_name(`style_${name}`); cached_snippet = block.get_unique_name(`style_${name}`.replace(/-/, '_'));
block.add_variable(cached_snippet, snippet); block.add_variable(cached_snippet, snippet);
} }

Loading…
Cancel
Save