From 331386a4d53fbd73c0cf70b4655c50c50d9455cb Mon Sep 17 00:00:00 2001 From: Sam X Chen <739263563@qq.com> Date: Sat, 10 Oct 2020 20:25:36 +0800 Subject: [PATCH] fix: fix code style problem --- src/index.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/index.js b/src/index.js index 32ae0c3..70eeabf 100644 --- a/src/index.js +++ b/src/index.js @@ -238,20 +238,17 @@ const plugin = (options = {}) => { tokens = tokens.map((token, idx) => { if (idx === 0 || tokens[idx - 1] === ",") { - let result = token; const localMatch = /^(\s*):local\s*\((.+?)\)/.exec(token); const nextLocalMatch = /:local\s*\((.+?)\)/.exec(token); if (localMatch) { - result = ( + result = localMatch[1] + exportScopedName(localMatch[2]) + - token.substr(localMatch[0].length) - ); + token.substr(localMatch[0].length); } else if (nextLocalMatch) { - const input = nextLocalMatch.input; const matchPattern = nextLocalMatch[0]; const matchVal = nextLocalMatch[1];