Skip to content

Commit

Permalink
Allow SCSS props & interpolation
Browse files Browse the repository at this point in the history
  • Loading branch information
aTei committed Sep 23, 2019
1 parent 0a1df57 commit ca27b9a
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions utils/isStandardSyntaxProperty.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,10 @@
*/

module.exports = function isStandardSyntaxProperty(property) {
// SCSS var (e.g. $var: x), list (e.g. $list: (x)) or map (e.g. $map: (key:value))
if (property[0] === '$') {
return false;
}

// Less var (e.g. @var: x)
if (property[0] === '@') {
return false;
}

// SCSS or Less interpolation
if (/#{.+?}|@{.+?}|\$\(.+?\)/.test(property)) {
return false;
}

return true;
};

0 comments on commit ca27b9a

Please sign in to comment.