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

Commit

Permalink
Merge pull request #878 from Shopify/include-style-tag-hyphens-in-css…
Browse files Browse the repository at this point in the history
…var-loader

Add check for hyphens in Liquid style tag for CSS custom properties
  • Loading branch information
Chris Berthe committed Nov 20, 2018
2 parents 613af0d + 40a4e4b commit 5a115cf
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 5a115cf

Please sign in to comment.