|
|
@@ -3,7 +3,7 @@
|
|
|
* https://github.com/RobinHerbots/Inputmask
|
|
|
* Copyright (c) 2010 - 2018 Robin Herbots
|
|
|
* Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
|
|
|
-* Version: 4.0.0-beta.4
|
|
|
+* Version: 4.0.0-beta.5
|
|
|
*/
|
|
|
|
|
|
!function(factory) {
|
|
|
@@ -148,6 +148,9 @@
|
|
|
onUnMask: function(maskedValue, unmaskedValue, opts) {
|
|
|
return parse(opts.outputFormat, analyseMask(maskedValue, opts.inputFormat, opts), opts);
|
|
|
},
|
|
|
+ casing: function(elem, test, pos, validPositions) {
|
|
|
+ return 0 == test.nativeDef.indexOf("[ap]") ? elem.toLowerCase() : 0 == test.nativeDef.indexOf("[AP]") ? elem.toUpperCase() : elem;
|
|
|
+ },
|
|
|
insertMode: !1
|
|
|
}
|
|
|
}), Inputmask;
|