Last change
on this file since 571e0df was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
377 bytes
|
Line | |
---|
1 | "use strict";
|
---|
2 |
|
---|
3 | Object.defineProperty(exports, "__esModule", {
|
---|
4 | value: true
|
---|
5 | });
|
---|
6 | exports.default = isMixin;
|
---|
7 |
|
---|
8 | function isMixin(node) {
|
---|
9 | const {
|
---|
10 | selector
|
---|
11 | } = node; // If the selector ends with a ':' it is likely a part of a custom mixin.
|
---|
12 |
|
---|
13 | if (!selector || selector[selector.length - 1] === ':') {
|
---|
14 | return true;
|
---|
15 | }
|
---|
16 |
|
---|
17 | return false;
|
---|
18 | }
|
---|
19 |
|
---|
20 | module.exports = exports.default; |
---|
Note:
See
TracBrowser
for help on using the repository browser.