Skip to content

Commit 43f2cb1

Browse files
style: fix
1 parent bdf6e61 commit 43f2cb1

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

src/plugins/postcss-import-parser.js

+2-7
Original file line numberDiff line numberDiff line change
@@ -154,13 +154,8 @@ const plugin = (options = {}) => {
154154

155155
const resolvedAtRules = await Promise.all(
156156
parsedAtRules.map(async (parsedAtRule) => {
157-
const {
158-
atRule,
159-
isRequestable,
160-
prefix,
161-
url,
162-
media,
163-
} = parsedAtRule;
157+
const { atRule, isRequestable, prefix, url, media } =
158+
parsedAtRule;
164159

165160
if (options.filter) {
166161
const needKeep = await options.filter(url, media);

src/utils.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ const WEBPACK_IGNORE_COMMENT_REGEXP = /webpackIgnore:(\s+)?(true|false)/;
1616

1717
// eslint-disable-next-line no-useless-escape
1818
const regexSingleEscape = /[ -,.\/:-@[\]\^`{-~]/;
19-
const regexExcessiveSpaces = /(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g;
19+
const regexExcessiveSpaces =
20+
/(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g;
2021

2122
function escape(string) {
2223
let output = "";

0 commit comments

Comments
 (0)