Skip to content

Commit

Permalink
trim file extension
Browse files Browse the repository at this point in the history
  • Loading branch information
saschanaz committed Nov 24, 2020
1 parent a86743f commit 693bf7d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/diff.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const chalk = require("chalk");
const chalk = require('chalk');
const deepDiff = require('deep-diff');
const {
getMergeBase,
Expand Down Expand Up @@ -96,7 +96,7 @@ function getDiffs(base, head) {
const contents = getBaseAndHeadContents(base, head, path);
if (!contents.base || !contents.head) {
namedDescriptions.push({
name: path.replace(/\//g, '.'),
name: path.replace(/\//g, '.').slice(0, -5), // trim file extension
description: contents.base ? 'Entirely removed' : 'Newly added',
});
} else {
Expand Down

0 comments on commit 693bf7d

Please sign in to comment.