From e1777a66290b5a0aa7911eed85730b293f6d517e Mon Sep 17 00:00:00 2001 From: Nick Kirkes Date: Wed, 28 May 2014 15:38:01 -0400 Subject: [PATCH] modified regex to restrict key name to 'version' only, disallows unquoted key names --- tasks/bump.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/bump.js b/tasks/bump.js index eb93904..62abfa4 100644 --- a/tasks/bump.js +++ b/tasks/bump.js @@ -71,7 +71,7 @@ module.exports = function(grunt) { var globalVersion; // when bumping multiple files var gitVersion; // when bumping using `git describe` - var VERSION_REGEXP = /([\'|\"]?version[\'|\"]?[ ]*:[ ]*[\'|\"]?)([\d||A-a|.|-]*)([\'|\"]?)/i; + var VERSION_REGEXP = /([\'|\"]version[\'|\"][ ]*:[ ]*[\'|\"])([\d||A-a|.|-]*)([\'|\"])/i; // GET VERSION FROM GIT