From 9bdb95c9e34cef640534e5e5a1e2225a80442000 Mon Sep 17 00:00:00 2001 From: HelenHuang <LinHuang@pollex.com.tw> Date: 星期四, 09 六月 2022 15:48:15 +0800 Subject: [PATCH] TODO#139894 [ footer -最下方說明與保經代合作 ] 文案修改 --- PAMapp/node_modules/yargs/build/lib/parse-command.js | 12 ++++++++---- 1 files changed, 8 insertions(+), 4 deletions(-) diff --git a/PAMapp/node_modules/yargs/build/lib/parse-command.js b/PAMapp/node_modules/yargs/build/lib/parse-command.js index 4989f53..aaf2327 100644 --- a/PAMapp/node_modules/yargs/build/lib/parse-command.js +++ b/PAMapp/node_modules/yargs/build/lib/parse-command.js @@ -1,4 +1,7 @@ -export function parseCommand(cmd) { +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.parseCommand = void 0; +function parseCommand(cmd) { const extraSpacesStrippedCommand = cmd.replace(/\s{2,}/g, ' '); const splitCommand = extraSpacesStrippedCommand.split(/\s+(?![^[]*]|[^<]*>)/); const bregex = /\.*[\][<>]/g; @@ -8,7 +11,7 @@ const parsedCommand = { cmd: firstCommand.replace(bregex, ''), demanded: [], - optional: [], + optional: [] }; splitCommand.forEach((cmd, i) => { let variadic = false; @@ -18,15 +21,16 @@ if (/^\[/.test(cmd)) { parsedCommand.optional.push({ cmd: cmd.replace(bregex, '').split('|'), - variadic, + variadic }); } else { parsedCommand.demanded.push({ cmd: cmd.replace(bregex, '').split('|'), - variadic, + variadic }); } }); return parsedCommand; } +exports.parseCommand = parseCommand; -- Gitblit v1.8.0