]> git.ipfire.org Git - thirdparty/moment.git/commitdiff
Make jshint happy 913/head
authorIskren Chernev <iskren.chernev@gmail.com>
Tue, 17 Sep 2013 07:14:19 +0000 (00:14 -0700)
committerIskren Chernev <iskren.chernev@gmail.com>
Tue, 17 Sep 2013 07:21:03 +0000 (00:21 -0700)
moment.js
test/moment/create.js

index 7cc2889dab65d69386884500fc09db6a334d11a4..0667c22aca35165b31c29c8f6180f39c524c2fc1 100644 (file)
--- a/moment.js
+++ b/moment.js
         });
 
         // Handle stuff after last formatting token.
-        if (non_token_start != config._f.length) {
+        if (non_token_start !== config._f.length) {
             regexp += regexpEscape(unescapeFormat(config._f.substring(non_token_start)));
         }
         regexp = new RegExp('^' + regexp + '$');
index 62c922c8dfb8032ae323bd10b95159203d7e40c4..2697c83b1917b342a46312a1ae058341e5f6cdd1 100644 (file)
@@ -491,7 +491,7 @@ exports.create = {
         test.done();
     },
 
-    "strict parsing" : function(test) {
+    "strict parsing" : function (test) {
         test.expect(10);
         test.equal(moment("2012-05", "YYYY-MM", true).format("YYYY-MM"), "2012-05", "parse correct string");
         test.equal(moment(" 2012-05", "YYYY-MM", true).isValid(), false, "fail on extra whitespace");