Skip to content

Commit

Permalink
Meta: fix newline in snapshot warning (tc39#3082)
Browse files Browse the repository at this point in the history
  • Loading branch information
devsnek authored and ljharb committed May 30, 2023
1 parent 86614b7 commit 2bccc07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/insert_snapshot_warning.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const path = require('path');
const { JSDOM } = require('jsdom');
const { execSync } = require('child_process');

const COMMIT = String(execSync('git rev-parse --verify HEAD'));
const COMMIT = String(execSync('git rev-parse --verify HEAD')).trim();

const WARNING_HTML = fs.readFileSync(path.join(__dirname, 'snapshot_warning.html'), 'utf8')
.replace(/{COMMIT}/g, COMMIT);
Expand Down

0 comments on commit 2bccc07

Please sign in to comment.