@@ -10944,7 +10944,7 @@ function findUrl(_, protocol, domain, path, match) {
10944
10944
function findEmail(_, atext, label, match) {
10945
10945
if (
10946
10946
!previous(match, true) ||
10947
- /[_-\d ]$/.test(label)
10947
+ /[-\d_ ]$/.test(label)
10948
10948
) {
10949
10949
return false
10950
10950
}
@@ -10972,22 +10972,19 @@ function isCorrectDomain(domain) {
10972
10972
}
10973
10973
function splitUrl(url) {
10974
10974
const trailExec = /[!"&'),.:;<>?\]}]+$/.exec(url);
10975
- let closingParenIndex;
10976
- let openingParens;
10977
- let closingParens;
10978
- let trail;
10979
- if (trailExec) {
10980
- url = url.slice(0, trailExec.index);
10981
- trail = trailExec[0];
10975
+ if (!trailExec) {
10976
+ return [url, undefined]
10977
+ }
10978
+ url = url.slice(0, trailExec.index);
10979
+ let trail = trailExec[0];
10980
+ let closingParenIndex = trail.indexOf(')');
10981
+ const openingParens = ccount(url, '(');
10982
+ let closingParens = ccount(url, ')');
10983
+ while (closingParenIndex !== -1 && openingParens > closingParens) {
10984
+ url += trail.slice(0, closingParenIndex + 1);
10985
+ trail = trail.slice(closingParenIndex + 1);
10982
10986
closingParenIndex = trail.indexOf(')');
10983
- openingParens = ccount(url, '(');
10984
- closingParens = ccount(url, ')');
10985
- while (closingParenIndex !== -1 && openingParens > closingParens) {
10986
- url += trail.slice(0, closingParenIndex + 1);
10987
- trail = trail.slice(closingParenIndex + 1);
10988
- closingParenIndex = trail.indexOf(')');
10989
- closingParens++;
10990
- }
10987
+ closingParens++;
10991
10988
}
10992
10989
return [url, trail]
10993
10990
}
@@ -11115,11 +11112,6 @@ function map$1(line, index, blank) {
11115
11112
return (blank ? '' : ' ') + line
11116
11113
}
11117
11114
11118
- const gfmStrikethroughFromMarkdown = {
11119
- canContainEols: ['delete'],
11120
- enter: {strikethrough: enterStrikethrough},
11121
- exit: {strikethrough: exitStrikethrough}
11122
- };
11123
11115
const constructsWithoutStrikethrough = [
11124
11116
'autolink',
11125
11117
'destinationLiteral',
@@ -11128,6 +11120,12 @@ const constructsWithoutStrikethrough = [
11128
11120
'titleQuote',
11129
11121
'titleApostrophe'
11130
11122
];
11123
+ handleDelete.peek = peekDelete;
11124
+ const gfmStrikethroughFromMarkdown = {
11125
+ canContainEols: ['delete'],
11126
+ enter: {strikethrough: enterStrikethrough},
11127
+ exit: {strikethrough: exitStrikethrough}
11128
+ };
11131
11129
const gfmStrikethroughToMarkdown = {
11132
11130
unsafe: [
11133
11131
{
@@ -11138,7 +11136,6 @@ const gfmStrikethroughToMarkdown = {
11138
11136
],
11139
11137
handlers: {delete: handleDelete}
11140
11138
};
11141
- handleDelete.peek = peekDelete;
11142
11139
function enterStrikethrough(token) {
11143
11140
this.enter({type: 'delete', children: []}, token);
11144
11141
}
@@ -11147,7 +11144,7 @@ function exitStrikethrough(token) {
11147
11144
}
11148
11145
function handleDelete(node, _, context, safeOptions) {
11149
11146
const tracker = track(safeOptions);
11150
- const exit = context.enter('emphasis ');
11147
+ const exit = context.enter('strikethrough ');
11151
11148
let value = tracker.move('~~');
11152
11149
value += containerPhrasing(node, context, {
11153
11150
...tracker.current(),
@@ -19444,7 +19441,7 @@ const { compareIdentifiers } = identifiers;
19444
19441
let SemVer$2 = class SemVer {
19445
19442
constructor (version, options) {
19446
19443
options = parseOptions$1(options);
19447
- if (version instanceof SemVer$2 ) {
19444
+ if (version instanceof SemVer) {
19448
19445
if (version.loose === !!options.loose &&
19449
19446
version.includePrerelease === !!options.includePrerelease) {
19450
19447
return version
@@ -19508,20 +19505,20 @@ let SemVer$2 = class SemVer {
19508
19505
}
19509
19506
compare (other) {
19510
19507
debug('SemVer.compare', this.version, this.options, other);
19511
- if (!(other instanceof SemVer$2 )) {
19508
+ if (!(other instanceof SemVer)) {
19512
19509
if (typeof other === 'string' && other === this.version) {
19513
19510
return 0
19514
19511
}
19515
- other = new SemVer$2 (other, this.options);
19512
+ other = new SemVer(other, this.options);
19516
19513
}
19517
19514
if (other.version === this.version) {
19518
19515
return 0
19519
19516
}
19520
19517
return this.compareMain(other) || this.comparePre(other)
19521
19518
}
19522
19519
compareMain (other) {
19523
- if (!(other instanceof SemVer$2 )) {
19524
- other = new SemVer$2 (other, this.options);
19520
+ if (!(other instanceof SemVer)) {
19521
+ other = new SemVer(other, this.options);
19525
19522
}
19526
19523
return (
19527
19524
compareIdentifiers(this.major, other.major) ||
@@ -19530,8 +19527,8 @@ let SemVer$2 = class SemVer {
19530
19527
)
19531
19528
}
19532
19529
comparePre (other) {
19533
- if (!(other instanceof SemVer$2 )) {
19534
- other = new SemVer$2 (other, this.options);
19530
+ if (!(other instanceof SemVer)) {
19531
+ other = new SemVer(other, this.options);
19535
19532
}
19536
19533
if (this.prerelease.length && !other.prerelease.length) {
19537
19534
return -1
@@ -19559,8 +19556,8 @@ let SemVer$2 = class SemVer {
19559
19556
} while (++i)
19560
19557
}
19561
19558
compareBuild (other) {
19562
- if (!(other instanceof SemVer$2 )) {
19563
- other = new SemVer$2 (other, this.options);
19559
+ if (!(other instanceof SemVer)) {
19560
+ other = new SemVer(other, this.options);
19564
19561
}
19565
19562
let i = 0;
19566
19563
do {
@@ -21465,24 +21462,23 @@ const labels = {
21465
21462
null: 'info',
21466
21463
undefined: 'info'
21467
21464
};
21468
- function reporter(files, options = {}) {
21469
- let one;
21465
+ function reporter(files, options) {
21470
21466
if (!files) {
21471
21467
return ''
21472
21468
}
21473
21469
if ('name' in files && 'message' in files) {
21474
21470
return String(files.stack || files)
21475
21471
}
21476
- if (!Array.isArray(files)) {
21477
- one = true;
21478
- files = [files];
21472
+ const options_ = options || {};
21473
+ if (Array.isArray(files)) {
21474
+ return format$1(transform( files, options_), false, options_)
21479
21475
}
21480
- return format$1(transform(files, options ), one, options )
21476
+ return format$1(transform([ files], options_ ), true, options_ )
21481
21477
}
21482
21478
function transform(files, options) {
21483
21479
const rows = [];
21484
21480
const all = [];
21485
- const sizes = {};
21481
+ const sizes = {place: 0, label: 0, reason: 0, ruleId: 0, source: 0 };
21486
21482
let index = -1;
21487
21483
while (++index < files.length) {
21488
21484
const messages = sort({messages: [...files[index].messages]}).messages;
0 commit comments