|
@@ -3,7 +3,7 @@
|
|
|
* https://github.com/RobinHerbots/Inputmask
|
|
* https://github.com/RobinHerbots/Inputmask
|
|
|
* Copyright (c) 2010 - 2018 Robin Herbots
|
|
* Copyright (c) 2010 - 2018 Robin Herbots
|
|
|
* Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
|
|
* Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
|
|
|
-* Version: 4.0.1-beta.21
|
|
|
|
|
|
|
+* Version: 4.0.1-beta.22
|
|
|
*/
|
|
*/
|
|
|
|
|
|
|
|
!function(factory) {
|
|
!function(factory) {
|
|
@@ -159,7 +159,7 @@
|
|
|
}
|
|
}
|
|
|
return result && opts.max && opts.max.date.getTime() == opts.max.date.getTime() && (result = opts.max.date.getTime() >= dateParts.date.getTime()),
|
|
return result && opts.max && opts.max.date.getTime() == opts.max.date.getTime() && (result = opts.max.date.getTime() >= dateParts.date.getTime()),
|
|
|
result;
|
|
result;
|
|
|
- }(dateParts, opts)), result && currentResult.pos !== pos ? {
|
|
|
|
|
|
|
+ }(dateParts, opts)), pos && result && currentResult.pos !== pos ? {
|
|
|
buffer: parse(opts.inputFormat, dateParts, opts),
|
|
buffer: parse(opts.inputFormat, dateParts, opts),
|
|
|
refreshFromBuffer: {
|
|
refreshFromBuffer: {
|
|
|
start: pos,
|
|
start: pos,
|
|
@@ -174,7 +174,7 @@
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
onUnMask: function(maskedValue, unmaskedValue, opts) {
|
|
onUnMask: function(maskedValue, unmaskedValue, opts) {
|
|
|
- return !0 === opts.postValidation(maskedValue.split(""), 0, !0, opts) ? parse(opts.outputFormat, analyseMask(maskedValue, opts.inputFormat, opts), opts) : unmaskedValue;
|
|
|
|
|
|
|
+ return this.isComplete(maskedValue) ? parse(opts.outputFormat, analyseMask(maskedValue, opts.inputFormat, opts), opts) : maskedValue;
|
|
|
},
|
|
},
|
|
|
casing: function(elem, test, pos, validPositions) {
|
|
casing: function(elem, test, pos, validPositions) {
|
|
|
return 0 == test.nativeDef.indexOf("[ap]") ? elem.toLowerCase() : 0 == test.nativeDef.indexOf("[AP]") ? elem.toUpperCase() : elem;
|
|
return 0 == test.nativeDef.indexOf("[ap]") ? elem.toLowerCase() : 0 == test.nativeDef.indexOf("[AP]") ? elem.toUpperCase() : elem;
|