Skip to content

Commit

Permalink
Fix postcss composes dependency regexp to include all kind of class n…
Browse files Browse the repository at this point in the history
…ames
  • Loading branch information
garthenweb committed Feb 17, 2019
1 parent c58c196 commit e3be9aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/core/parcel-bundler/src/assets/CSSAsset.js
Expand Up @@ -6,8 +6,8 @@ const CssSyntaxError = require('postcss/lib/css-syntax-error');

const URL_RE = /url\s*\("?(?![a-z]+:)/;
const IMPORT_RE = /@import/;
const COMPOSES_RE = /composes:\s*[a-zA-Z,\s]+from\s*("|').*("|')\s*;?/;
const FROM_IMPORT_RE = /[a-zA-Z,\s]+from\s*(?:"|')(.*)(?:"|')\s*;?/;
const COMPOSES_RE = /composes:.+from\s*("|').*("|')\s*;?/;
const FROM_IMPORT_RE = /.+from\s*(?:"|')(.*)(?:"|')\s*;?/;
const PROTOCOL_RE = /^[a-z]+:/;

class CSSAsset extends Asset {
Expand Down

0 comments on commit e3be9aa

Please sign in to comment.