Skip to content
This repository was archived by the owner on Sep 8, 2020. It is now read-only.

Commit 9a6315a

Browse files
committed
1.8.1
1 parent e3dc7c0 commit 9a6315a

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

dist/mask.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*!
22
* angular-ui-mask
33
* https://github.com/angular-ui/ui-mask
4-
* Version: 1.8.0 - 2016-02-19T02:50:22.549Z
4+
* Version: 1.8.1 - 2016-02-23T07:32:45.020Z
55
* License: MIT
66
*/
77

@@ -336,7 +336,7 @@ angular.module('ui.mask', [])
336336
var maskPlaceholderChars = maskPlaceholder.split(''),
337337
maskPlaceholderCopy, components;
338338

339-
//maskCaretMap can have bad values if the input has the ui-mask attribute implemented as an obversable property, i.e. the demo page
339+
//maskCaretMap can have bad values if the input has the ui-mask attribute implemented as an obversable property, e.g. the demo page
340340
if (maskCaretMap && !isNaN(maskCaretMap[0])) {
341341
//Instead of trying to manipulate the RegEx based on the placeholder characters
342342
//we can simply replace the placeholder characters based on the already built
@@ -347,13 +347,13 @@ angular.module('ui.mask', [])
347347
});
348348
}
349349
maskPlaceholderCopy = maskPlaceholderChars.join('');
350-
components = maskPlaceholderCopy.replace(/[_]+/g, '_').replace(/([^_]+)([a-zA-Z0-9])([^_])/g, '$1$2_$3').split('_');
350+
components = maskPlaceholderCopy.replace(/[_]+/g, '_').split('_');
351351
components = components.filter(function(s) {
352352
return s !== '';
353353
});
354354

355355
// need a string search offset in cases where the mask contains multiple identical components
356-
// I.E. a mask of 99.99.99-999.99
356+
// E.g., a mask of 99.99.99-999.99
357357
var offset = 0;
358358
return components.map(function(c) {
359359
var componentPosition = maskPlaceholderCopy.indexOf(c, offset);

dist/mask.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "angular-ui-mask",
3-
"version": "1.8.0",
3+
"version": "1.8.1",
44
"author": "https://github.com/angular-ui/ui-mask/graphs/contributors",
55
"license": "MIT",
66
"homepage": "https://github.com/angular-ui/ui-mask",

0 commit comments

Comments
 (0)