From 90e6cb94e9c9a4d055a0983c9c7386daa48f61f9 Mon Sep 17 00:00:00 2001 From: HelenHuang <LinHuang@pollex.com.tw> Date: 星期四, 09 六月 2022 15:45:03 +0800 Subject: [PATCH] TODO#139893 [ FAQ 常見問題 -我進行預約後,顧問會用甚麼方式聯繫我? ] 文案調整 --- 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