|
|
@@ -3,7 +3,7 @@
|
|
|
* https://github.com/RobinHerbots/Inputmask
|
|
|
* Copyright (c) 2010 - 2017 Robin Herbots
|
|
|
* Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
|
|
|
-* Version: 3.3.5
|
|
|
+* Version: 3.3.6-0
|
|
|
*/
|
|
|
|
|
|
!function(factory) {
|
|
|
@@ -71,7 +71,7 @@
|
|
|
},
|
|
|
postValidation: function(buffer, currentResult, opts) {
|
|
|
var dayMonthValue, year, bufferStr = buffer.join("");
|
|
|
- return 0 === opts.mask.indexOf("y") ? (year = bufferStr.substr(0, 4), dayMonthValue = bufferStr.substr(4, 11)) : (year = bufferStr.substr(6, 11),
|
|
|
+ return 0 === opts.mask.indexOf("y") ? (year = bufferStr.substr(0, 4), dayMonthValue = bufferStr.substring(4, 10)) : (year = bufferStr.substring(6, 10),
|
|
|
dayMonthValue = bufferStr.substr(0, 6)), currentResult && (dayMonthValue !== opts.leapday || isLeapYear(year));
|
|
|
},
|
|
|
definitions: {
|