1
1
/*!
2
2
* angular-ui-mask
3
3
* 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
5
5
* License: MIT
6
6
*/
7
7
@@ -336,7 +336,7 @@ angular.module('ui.mask', [])
336
336
var maskPlaceholderChars = maskPlaceholder . split ( '' ) ,
337
337
maskPlaceholderCopy , components ;
338
338
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
340
340
if ( maskCaretMap && ! isNaN ( maskCaretMap [ 0 ] ) ) {
341
341
//Instead of trying to manipulate the RegEx based on the placeholder characters
342
342
//we can simply replace the placeholder characters based on the already built
@@ -347,13 +347,13 @@ angular.module('ui.mask', [])
347
347
} ) ;
348
348
}
349
349
maskPlaceholderCopy = maskPlaceholderChars . join ( '' ) ;
350
- components = maskPlaceholderCopy . replace ( / [ _ ] + / g, '_' ) . replace ( / ( [ ^ _ ] + ) ( [ a - z A - Z 0 - 9 ] ) ( [ ^ _ ] ) / g , '$1$2_$3' ) . split ( '_' ) ;
350
+ components = maskPlaceholderCopy . replace ( / [ _ ] + / g, '_' ) . split ( '_' ) ;
351
351
components = components . filter ( function ( s ) {
352
352
return s !== '' ;
353
353
} ) ;
354
354
355
355
// 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
357
357
var offset = 0 ;
358
358
return components . map ( function ( c ) {
359
359
var componentPosition = maskPlaceholderCopy . indexOf ( c , offset ) ;
0 commit comments