tools/release: simplify regex

This commit is contained in:
Bert Belder 2018-11-26 15:49:04 -07:00
parent 97276ce4dd
commit 1bc78625f0
No known key found for this signature in database
GPG Key ID: 7A77887B2E2ED461

View File

@ -1,7 +1,7 @@
const exec = require('child_process').execSync;
const resolve = require('path').resolve;
const getSHA = (s) => s.match(/^\s*([0-9a-fA-F]{40})\s*$/)[1];
const getSHA = (s) => s.match(/^\s*([0-9a-f]{40})\s*$/i)[1];
const inherit = { stdio: 'inherit' };
const utf8 = { encoding: 'utf8' };