Skip to content
This repository has been archived by the owner on Jul 19, 2021. It is now read-only.

Commit

Permalink
Add check for hyphens in Liquid style tag for CSS custom properties
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Berthe committed Nov 19, 2018
1 parent 613af0d commit 40a4e4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/slate-cssvar-loader/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const path = require('path');
const SlateConfig = require('@shopify/slate-config');
const config = new SlateConfig(require('./slate-cssvar-loader.schema'));

const STYLE_BLOCK_REGEX = /(?:<style>|\{% style %\})([\S\s]*?)(?:<\/style>|\{% endstyle %\})/g;
const STYLE_BLOCK_REGEX = /(?:<style>|\{%-? style -?%\})([\S\s]*?)(?:<\/style>|\{%-? endstyle -?%\})/g;
const CSS_VAR_FUNC_REGEX = /var\(--(.*?)\)/g;
const CSS_VAR_DECL_REGEX = /--(.*?):\s*(\{\{\s*.*?\s*\}\}.*?);/g;

Expand Down

0 comments on commit 40a4e4b

Please sign in to comment.