fix bug getting confused with momentjs formatting char LT and our T

This commit is contained in:
Adam Shaw
2014-05-24 17:09:46 -07:00
parent be73cbf1d4
commit 46b401c090
+1 -1
View File
@@ -203,7 +203,7 @@ function getFormatStringChunks(formatStr) {
// Break the formatting string into an array of chunks
function chunkFormatString(formatStr) {
var chunks = [];
var chunker = /\[([^\]]*)\]|\(([^\)]*)\)|((\w)\4*o?T?)|([^\w\[\(]+)/g; // TODO: more descrimination
var chunker = /\[([^\]]*)\]|\(([^\)]*)\)|(LT|(\w)\4*o?)|([^\w\[\(]+)/g; // TODO: more descrimination
var match;
while ((match = chunker.exec(formatStr))) {