From d635c1254471ccdc45c679b92f20b976b699ed8d Mon Sep 17 00:00:00 2001 From: miigotu <miigotu@gmail.com> Date: Sat, 16 Dec 2017 14:14:47 -0800 Subject: [PATCH] remove parens from commit messages for publish Signed-off-by: miigotu <miigotu@gmail.com> --- Gruntfile.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Gruntfile.js b/Gruntfile.js index 44d718481..cbc62b1d0 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -216,7 +216,7 @@ module.exports = function(grunt) { 'crowdin_upload': {cmd: 'crowdin-cli-py upload sources'}, 'crowdin_download': {cmd: 'crowdin-cli-py download'}, 'babel_compile': {cmd: 'python setup.py compile_catalog'}, - + // Run tests 'test': {cmd: 'yarn run test || npm run test'}, @@ -306,7 +306,7 @@ module.exports = function(grunt) { stdout: false, callback: function(err, stdout) { var commits = stdout.trim() - .replace(/`/gm, '').replace(/^\([\w\d\s,.\-+_/>]+\)\s/gm, ''); // removes ` and tag information + .replace(/`/gm, '').replace(/^\([\w\d\s,.\-+_/>]+\)\s/gm, '').replace(/[()]/gm, ''); // removes ` and tag information if (commits) { grunt.config('commits', commits); } else { -- GitLab