Skip to content

Commit 3f48cc2

Browse files
committed
style: remove comment and fix indent
1 parent cf59b66 commit 3f48cc2

2 files changed

Lines changed: 2 additions & 28 deletions

File tree

src/index.js

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -2,32 +2,6 @@ import postcss from 'postcss';
22
import strGetContent from './str-get-content';
33
import {METHOD} from './constant';
44

5-
// const valResolve = value => {
6-
// const map = value.substring(
7-
// value.indexOf('((') + 2,
8-
// value.indexOf('),')
9-
// )
10-
// .split(',')
11-
// .reduce((map, string) => {
12-
// const [key, value] = string.split(':');
13-
// return Object.assign(map, {[key]: value});
14-
// }, {});
15-
16-
// const key = value.substring(
17-
// value.indexOf('),') + 2,
18-
// value.lastIndexOf(')')
19-
// );
20-
21-
// return map[key];
22-
// };
23-
24-
// const replace = value => {
25-
// console.log(value);
26-
27-
// //console.log(value.substr(0, start),value.substr(start, end),value.substr(end));
28-
// return `${value.substr(0, start)}${valResolve(value.substr(start, end))}${value.substr(end)}`;
29-
// }
30-
315
const getKeyFromMapString = (mapString, key) => {
326
// Remove all whitespace character from the key
337
const keyValue = key.replace(/\s/g, '');

test/test.plugin.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import postcss from 'postcss';
22
import test from 'ava';
33
import plugin from '../src';
44

5-
const processing = (input, opts) => {
6-
return postcss([plugin(opts)]).process(input).css;
5+
const processing = (input, options) => {
6+
return postcss([plugin(options)]).process(input).css;
77
};
88

99
test('it should return body color for background', t => {

0 commit comments

Comments
 (0)