]> git.ipfire.org Git - thirdparty/moment.git/commitdiff
Passing tests for #470
authorTim Wood <washwithcare@gmail.com>
Mon, 22 Oct 2012 23:44:52 +0000 (16:44 -0700)
committerTim Wood <washwithcare@gmail.com>
Mon, 22 Oct 2012 23:44:52 +0000 (16:44 -0700)
moment.js

index 5370d1980209ca93dffacadc54b442fbc981f266..01f53f566a648c048ef1f6f48c86e434192e7a61 100644 (file)
--- a/moment.js
+++ b/moment.js
@@ -35,7 +35,7 @@
         parseTokenThreeDigits = /\d{3}/, // 000 - 999
         parseTokenFourDigits = /\d{1,4}/, // 0 - 9999
         parseTokenSixDigits = /[+\-]?\d{1,6}/, // -999,999 - 999,999
-        parseTokenWord = /[0-9a-z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+/i, // any word characters or numbers
+        parseTokenWord = /[0-9]*[a-z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+/i, // any numbers followed by word characters
         parseTokenTimezone = /Z|[\+\-]\d\d:?\d\d/i, // +00:00 -00:00 +0000 -0000 or Z
         parseTokenT = /T/i, // T (ISO seperator)