Skip to content

Commit

Permalink
Merge pull request #182 from Kebiled/fix/report-header-regex
Browse files Browse the repository at this point in the history
Fix report header regex for shorter contract names
  • Loading branch information
Rubilmax authored Jun 10, 2024
2 parents a4cc3fc + 2e50374 commit c265a31
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.computeDiffs = exports.loadReports = exports.variation = void 0;
const orderBy_1 = __importDefault(__nccwpck_require__(94791));
const minimatch_1 = __nccwpck_require__(4501);
const reportHeaderRegex = /^\| .+:.+ contract \|/;
const reportHeaderRegex = /^\| .+:.+ contract +\|/;
const variation = (current, previous) => {
const delta = current - previous;
return {
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/report.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Minimatch } from "minimatch";

import { DiffReport, GasReport, SortCriterion, SortOrder } from "./types";

const reportHeaderRegex = /^\| .+:.+ contract \|/;
const reportHeaderRegex = /^\| .+:.+ contract +\|/;

export const variation = (current: number, previous: number) => {
const delta = current - previous;
Expand Down

0 comments on commit c265a31

Please sign in to comment.