]> git.ipfire.org Git - thirdparty/moment.git/commitdiff
Implement meridiemParse and isPM in Russian 1650/head
authorIskren Chernev <iskren.chernev@gmail.com>
Thu, 8 May 2014 07:40:21 +0000 (00:40 -0700)
committerIskren Chernev <iskren.chernev@gmail.com>
Thu, 8 May 2014 07:40:21 +0000 (00:40 -0700)
lang/ru.js

index ac5400da8a90ba586dd78f59c0733c135c85fdb0..dc013a7fc472e0e64dde0c23491887eae54804a1 100644 (file)
             yy : relativeTimeWithPlural
         },
 
-        // M. E.: those two are virtually unused but a user might want to implement them for his/her website for some reason
+        meridiemParse: /ночи|утра|дня|вечера/i,
+        isPM : function (input) {
+            return /^(дня|вечера)$/.test(input);
+        },
 
         meridiem : function (hour, minute, isLower) {
             if (hour < 4) {