[Pkg-javascript-commits] [dojo] 01/05: Fix Git revision not being correctly added to version object.

David Prévot taffit at moszumanska.debian.org
Tue Dec 9 17:50:37 UTC 2014


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to annotated tag 1.6.3
in repository dojo.

commit 66608081c2077d12a9c6288201d107a86803a28c
Author: Colin Snover <github.com at zetafleet.com>
Date:   Fri Aug 23 03:53:32 2013 +0000

    Fix Git revision not being correctly added to version object.
    
    Refs #17176.
---
 _base/_loader/bootstrap.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/_base/_loader/bootstrap.js b/_base/_loader/bootstrap.js
index 2785873..cd378c5 100644
--- a/_base/_loader/bootstrap.js
+++ b/_base/_loader/bootstrap.js
@@ -228,7 +228,7 @@ dojo.global = {
 =====*/
 	dojo.locale = d.config.locale;
 
-	var rev = "$Rev: c67ea3e $".match(/\d+/);
+	var rev = "$Rev: c67ea3e $".match(/[0-9a-f]{7,}/);
 
 /*=====
 	dojo.version = function(){
@@ -253,7 +253,7 @@ dojo.global = {
 =====*/
 	dojo.version = {
 		major: 1, minor: 6, patch: 2, flag: "",
-		revision: rev ? +rev[0] : NaN,
+		revision: rev ? rev[0] : NaN,
 		toString: function(){
 			with(d.version){
 				return major + "." + minor + "." + patch + flag + " (" + revision + ")";	// String

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/dojo.git



More information about the Pkg-javascript-commits mailing list