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

Commit 724ae08

Browse files
committed
1.7.2
1 parent 2a3d30f commit 724ae08

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

dist/mask.js

Lines changed: 7 additions & 2 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.7.1 - 2016-01-28T02:47:50.148Z
4+
* Version: 1.7.2 - 2016-01-29T01:38:58.683Z
55
* License: MIT
66
*/
77

@@ -330,10 +330,15 @@ angular.module('ui.mask', [])
330330
return s !== '';
331331
});
332332

333+
// need a string search offset in cases where the mask contains multiple identical components
334+
// I.E. a mask of 99.99.99-999.99
335+
var offset = 0;
333336
return components.map(function(c) {
337+
var componentPosition = maskPlaceholderCopy.indexOf(c, offset);
338+
offset = componentPosition + 1;
334339
return {
335340
value: c,
336-
position: maskPlaceholderCopy.indexOf(c)
341+
position: componentPosition
337342
};
338343
});
339344
}

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.7.1",
3+
"version": "1.7.2",
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)