@@ -326,7 +326,7 @@ angular.module('ui.mask', [])
326
326
var maskPlaceholderChars = maskPlaceholder . split ( '' ) ,
327
327
maskPlaceholderCopy , components ;
328
328
329
- //maskCaretMap can have bad values if the input has the ui-mask attribute implemented as an obversable property, i.e . the demo page
329
+ //maskCaretMap can have bad values if the input has the ui-mask attribute implemented as an obversable property, e.g . the demo page
330
330
if ( maskCaretMap && ! isNaN ( maskCaretMap [ 0 ] ) ) {
331
331
//Instead of trying to manipulate the RegEx based on the placeholder characters
332
332
//we can simply replace the placeholder characters based on the already built
@@ -337,13 +337,13 @@ angular.module('ui.mask', [])
337
337
} ) ;
338
338
}
339
339
maskPlaceholderCopy = maskPlaceholderChars . join ( '' ) ;
340
- components = maskPlaceholderCopy . replace ( / [ _ ] + / g, '_' ) . replace ( / ( [ ^ _ ] + ) ( [ a - z A - Z 0 - 9 ] ) ( [ ^ _ ] ) / g , '$1$2_$3' ) . split ( '_' ) ;
340
+ components = maskPlaceholderCopy . replace ( / [ _ ] + / g, '_' ) . split ( '_' ) ;
341
341
components = components . filter ( function ( s ) {
342
342
return s !== '' ;
343
343
} ) ;
344
344
345
345
// need a string search offset in cases where the mask contains multiple identical components
346
- // I.E. a mask of 99.99.99-999.99
346
+ // E.g., a mask of 99.99.99-999.99
347
347
var offset = 0 ;
348
348
return components . map ( function ( c ) {
349
349
var componentPosition = maskPlaceholderCopy . indexOf ( c , offset ) ;
0 commit comments