Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit4cdca35

Browse files
authored
Merge pull request#187 from penandlim/john/updateSeparatorRegex
fix(report): update regex pattern to include more separator lines
2 parentsdf5059d +4446bc3 commit4cdca35

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

‎dist/index.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,7 @@ exports.computeDiffs = exports.loadReports = exports.variation = void 0;
432432
const orderBy_1 = __importDefault(__nccwpck_require__(94791));
433433
const minimatch_1 = __nccwpck_require__(4501);
434434
const reportHeaderRegex = /^\| .+:.+ contract +\|/gi;
435-
const reportSeparatorRegex = /^[\|╭╰]---/;
435+
const reportSeparatorRegex = /^(?:[\|╭╰+][-=]+|\|[\s|]+$)/;
436436
const variation = (current, previous) => {
437437
const delta = current - previous;
438438
return {

‎dist/index.js.map‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

‎src/report.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { Minimatch } from "minimatch";
44
import{DiffReport,GasReport,SortCriterion,SortOrder}from"./types";
55

66
constreportHeaderRegex=/^\|.+:.+contract+\|/gi;
7-
constreportSeparatorRegex=/^[\|]---/;
7+
constreportSeparatorRegex=/^(?:[\|+][-=]+|\|[\s|]+$)/;
88

99
exportconstvariation=(current:number,previous:number)=>{
1010
constdelta=current-previous;

‎tests/mocks/gas_report.2.ansi‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,11 +318,13 @@ Running 17 tests for test-foundry/compound/TestWithdraw.t.sol:TestWithdraw
318318
Test result: ok. 17 passed; 0 failed; finished in 118.90s
319319
╭-----------------------------------------------------------------+-----------------+-------+--------+-------+---------╮
320320
| contracts/compound/IncentivesVault.sol:IncentivesVault Contract | | | | | |
321-
|-----------------------------------------------------------------|-----------------|-------|--------|-------|---------|
321+
+======================================================================================================================+
322322
| Deployment Cost | Deployment Size | | | | |
323323
|-----------------------------------------------------------------+-----------------+-------+--------+-------+---------|
324324
| 640594 | 3430 | | | | |
325325
|-----------------------------------------------------------------+-----------------+-------+--------+-------+---------|
326+
| | | | | | |
327+
|-----------------------------------------------------------------+-----------------+-------+--------+-------+---------|
326328
| Function Name | min | avg | median | max | # calls |
327329
|-----------------------------------------------------------------+-----------------+-------+--------+-------+---------|
328330
| MAX_BASIS_POINTS | 305 | 305 | 305 | 305 | 1 |

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp