@@ -10944,7 +10944,7 @@ function findUrl(_, protocol, domain, path, match) {
1094410944function findEmail(_, atext, label, match) {
1094510945 if (
1094610946 !previous(match, true) ||
10947- /[_-\d ]$/.test(label)
10947+ /[-\d_ ]$/.test(label)
1094810948 ) {
1094910949 return false
1095010950 }
@@ -10972,22 +10972,19 @@ function isCorrectDomain(domain) {
1097210972}
1097310973function splitUrl(url) {
1097410974 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);
1098210986 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++;
1099110988 }
1099210989 return [url, trail]
1099310990}
@@ -11115,11 +11112,6 @@ function map$1(line, index, blank) {
1111511112 return (blank ? '' : ' ') + line
1111611113}
1111711114
11118- const gfmStrikethroughFromMarkdown = {
11119- canContainEols: ['delete'],
11120- enter: {strikethrough: enterStrikethrough},
11121- exit: {strikethrough: exitStrikethrough}
11122- };
1112311115const constructsWithoutStrikethrough = [
1112411116 'autolink',
1112511117 'destinationLiteral',
@@ -11128,6 +11120,12 @@ const constructsWithoutStrikethrough = [
1112811120 'titleQuote',
1112911121 'titleApostrophe'
1113011122];
11123+ handleDelete.peek = peekDelete;
11124+ const gfmStrikethroughFromMarkdown = {
11125+ canContainEols: ['delete'],
11126+ enter: {strikethrough: enterStrikethrough},
11127+ exit: {strikethrough: exitStrikethrough}
11128+ };
1113111129const gfmStrikethroughToMarkdown = {
1113211130 unsafe: [
1113311131 {
@@ -11138,7 +11136,6 @@ const gfmStrikethroughToMarkdown = {
1113811136 ],
1113911137 handlers: {delete: handleDelete}
1114011138};
11141- handleDelete.peek = peekDelete;
1114211139function enterStrikethrough(token) {
1114311140 this.enter({type: 'delete', children: []}, token);
1114411141}
@@ -11147,7 +11144,7 @@ function exitStrikethrough(token) {
1114711144}
1114811145function handleDelete(node, _, context, safeOptions) {
1114911146 const tracker = track(safeOptions);
11150- const exit = context.enter('emphasis ');
11147+ const exit = context.enter('strikethrough ');
1115111148 let value = tracker.move('~~');
1115211149 value += containerPhrasing(node, context, {
1115311150 ...tracker.current(),
@@ -19444,7 +19441,7 @@ const { compareIdentifiers } = identifiers;
1944419441let SemVer$2 = class SemVer {
1944519442 constructor (version, options) {
1944619443 options = parseOptions$1(options);
19447- if (version instanceof SemVer$2 ) {
19444+ if (version instanceof SemVer) {
1944819445 if (version.loose === !!options.loose &&
1944919446 version.includePrerelease === !!options.includePrerelease) {
1945019447 return version
@@ -19508,20 +19505,20 @@ let SemVer$2 = class SemVer {
1950819505 }
1950919506 compare (other) {
1951019507 debug('SemVer.compare', this.version, this.options, other);
19511- if (!(other instanceof SemVer$2 )) {
19508+ if (!(other instanceof SemVer)) {
1951219509 if (typeof other === 'string' && other === this.version) {
1951319510 return 0
1951419511 }
19515- other = new SemVer$2 (other, this.options);
19512+ other = new SemVer(other, this.options);
1951619513 }
1951719514 if (other.version === this.version) {
1951819515 return 0
1951919516 }
1952019517 return this.compareMain(other) || this.comparePre(other)
1952119518 }
1952219519 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);
1952519522 }
1952619523 return (
1952719524 compareIdentifiers(this.major, other.major) ||
@@ -19530,8 +19527,8 @@ let SemVer$2 = class SemVer {
1953019527 )
1953119528 }
1953219529 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);
1953519532 }
1953619533 if (this.prerelease.length && !other.prerelease.length) {
1953719534 return -1
@@ -19559,8 +19556,8 @@ let SemVer$2 = class SemVer {
1955919556 } while (++i)
1956019557 }
1956119558 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);
1956419561 }
1956519562 let i = 0;
1956619563 do {
@@ -21465,24 +21462,23 @@ const labels = {
2146521462 null: 'info',
2146621463 undefined: 'info'
2146721464};
21468- function reporter(files, options = {}) {
21469- let one;
21465+ function reporter(files, options) {
2147021466 if (!files) {
2147121467 return ''
2147221468 }
2147321469 if ('name' in files && 'message' in files) {
2147421470 return String(files.stack || files)
2147521471 }
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_)
2147921475 }
21480- return format$1(transform(files, options ), one, options )
21476+ return format$1(transform([ files], options_ ), true, options_ )
2148121477}
2148221478function transform(files, options) {
2148321479 const rows = [];
2148421480 const all = [];
21485- const sizes = {};
21481+ const sizes = {place: 0, label: 0, reason: 0, ruleId: 0, source: 0 };
2148621482 let index = -1;
2148721483 while (++index < files.length) {
2148821484 const messages = sort({messages: [...files[index].messages]}).messages;
0 commit comments