mirror of
https://github.com/actions/labeler.git
synced 2025-12-17 23:59:40 +00:00
build
This commit is contained in:
19
node_modules/json5/dist/index.mjs
generated
vendored
19
node_modules/json5/dist/index.mjs
generated
vendored
@@ -11,11 +11,11 @@ var unicode = {
|
||||
|
||||
var util = {
|
||||
isSpaceSeparator (c) {
|
||||
return unicode.Space_Separator.test(c)
|
||||
return typeof c === 'string' && unicode.Space_Separator.test(c)
|
||||
},
|
||||
|
||||
isIdStartChar (c) {
|
||||
return (
|
||||
return typeof c === 'string' && (
|
||||
(c >= 'a' && c <= 'z') ||
|
||||
(c >= 'A' && c <= 'Z') ||
|
||||
(c === '$') || (c === '_') ||
|
||||
@@ -24,7 +24,7 @@ var util = {
|
||||
},
|
||||
|
||||
isIdContinueChar (c) {
|
||||
return (
|
||||
return typeof c === 'string' && (
|
||||
(c >= 'a' && c <= 'z') ||
|
||||
(c >= 'A' && c <= 'Z') ||
|
||||
(c >= '0' && c <= '9') ||
|
||||
@@ -35,11 +35,11 @@ var util = {
|
||||
},
|
||||
|
||||
isDigit (c) {
|
||||
return /[0-9]/.test(c)
|
||||
return typeof c === 'string' && /[0-9]/.test(c)
|
||||
},
|
||||
|
||||
isHexDigit (c) {
|
||||
return /[0-9A-Fa-f]/.test(c)
|
||||
return typeof c === 'string' && /[0-9A-Fa-f]/.test(c)
|
||||
},
|
||||
};
|
||||
|
||||
@@ -1253,13 +1253,20 @@ var stringify = function stringify (value, replacer, space) {
|
||||
|
||||
let product = '';
|
||||
|
||||
for (const c of value) {
|
||||
for (let i = 0; i < value.length; i++) {
|
||||
const c = value[i];
|
||||
switch (c) {
|
||||
case "'":
|
||||
case '"':
|
||||
quotes[c]++;
|
||||
product += c;
|
||||
continue
|
||||
|
||||
case '\0':
|
||||
if (util.isDigit(value[i + 1])) {
|
||||
product += '\\x00';
|
||||
continue
|
||||
}
|
||||
}
|
||||
|
||||
if (replacements[c]) {
|
||||
|
||||
Reference in New Issue
Block a user