[Pkg-javascript-commits] [dojo] 58/88: Remove single quotes in date-time template. Fixes #16447 on 1.8 branch

David Prévot taffit at moszumanska.debian.org
Thu Aug 21 17:39:38 UTC 2014


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

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

commit 62b741717832b10f36880e3d31606c0c8e8cfac1
Author: Adam Peller <github at peller.org>
Date:   Wed Dec 19 22:56:27 2012 +0000

    Remove single quotes in date-time template.  Fixes #16447 on 1.8
    branch
    
    
    git-svn-id: http://svn.dojotoolkit.org/src/branches/1.8/dojo@30219 560b804f-0ae3-0310-86f3-f6aa0a117693
---
 date/locale.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/date/locale.js b/date/locale.js
index 5eaeea0..67843ed 100644
--- a/date/locale.js
+++ b/date/locale.js
@@ -258,7 +258,7 @@ exports.format = function(/*Date*/ dateObject, /*__FormatOptions?*/ options){
 		if(pattern){str.push(_processPattern(pattern, sauce));}
 	}
 
-	return str.length == 1 ? str[0] : bundle["dateTimeFormat-"+formatLength].replace(/\{(\d+)\}/g,
+	return str.length == 1 ? str[0] : bundle["dateTimeFormat-"+formatLength].replace(/\'/g,'').replace(/\{(\d+)\}/g,
 		function(match, key){ return str[key]; }); // 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