From 3762b2bd3ff37512da2e4d90329c57afd62791d2 Mon Sep 17 00:00:00 2001 From: Skyf0l Date: Sat, 14 Oct 2023 01:18:41 +0200 Subject: [PATCH] fix: quotes in middle of selection --- dist/index.js | 2 +- index.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/index.js b/dist/index.js index 0482d10f..44e748a5 100644 --- a/dist/index.js +++ b/dist/index.js @@ -32649,7 +32649,7 @@ function addVercelMetadata(key, value, providedArgs) { function parseArgs() { const args = []; - for (const match of vercelArgs.matchAll(/[^\s"]*"[^\\"]*(\\.[^\\"]*)*"|[^\s]+/gm)) { + for (const match of vercelArgs.matchAll(/[^\s"]*"[^\\"]*(\\.[^\\"]*)*"[^\s"]*|[^\s]+/gm)) { args.push(match[0]); } return args; diff --git a/index.js b/index.js index 0b6d9ebb..2ad092a4 100644 --- a/index.js +++ b/index.js @@ -132,7 +132,7 @@ function addVercelMetadata(key, value, providedArgs) { function parseArgs() { const args = []; - for (const match of vercelArgs.matchAll(/[^\s"]*"[^\\"]*(\\.[^\\"]*)*"|[^\s]+/gm)) { + for (const match of vercelArgs.matchAll(/[^\s"]*"[^\\"]*(\\.[^\\"]*)*"[^\s"]*|[^\s]+/gm)) { args.push(match[0]); } return args;