mirror of
https://github.com/actions/labeler.git
synced 2025-12-18 16:16:48 +00:00
build
This commit is contained in:
7
node_modules/yargs-parser/lib/tokenize-arg-string.js
generated
vendored
7
node_modules/yargs-parser/lib/tokenize-arg-string.js
generated
vendored
@@ -1,6 +1,8 @@
|
||||
// take an un-split argv string and tokenize it.
|
||||
module.exports = function (argString) {
|
||||
if (Array.isArray(argString)) return argString
|
||||
if (Array.isArray(argString)) {
|
||||
return argString.map(e => typeof e !== 'string' ? e + '' : e)
|
||||
}
|
||||
|
||||
argString = argString.trim()
|
||||
|
||||
@@ -25,12 +27,9 @@ module.exports = function (argString) {
|
||||
// don't split the string if we're in matching
|
||||
// opening or closing single and double quotes.
|
||||
if (c === opening) {
|
||||
if (!args[i]) args[i] = ''
|
||||
opening = null
|
||||
continue
|
||||
} else if ((c === "'" || c === '"') && !opening) {
|
||||
opening = c
|
||||
continue
|
||||
}
|
||||
|
||||
if (!args[i]) args[i] = ''
|
||||
|
||||
Reference in New Issue
Block a user