File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -124,8 +124,8 @@ $.widget( "ui.mask", {
124
124
this . isEmpty = this . isValid = true ;
125
125
for ( bufferPosition = 0 ; bufferPosition < bufferLength ; bufferPosition += bufferObject . length ) {
126
126
bufferObject = this . buffer [ bufferPosition ] ;
127
- if ( bufferObject . literal && ! raw ) {
128
- if ( bufferPosition < this . optionalPosition || this . isValid ) {
127
+ if ( bufferObject . literal ) {
128
+ if ( ! raw && bufferPosition < this . optionalPosition || this . isValid ) {
129
129
value += bufferObject . literal ;
130
130
}
131
131
} else if ( bufferObject . value ) {
@@ -135,9 +135,11 @@ $.widget( "ui.mask", {
135
135
for ( counter = bufferObject . value . length ; counter < bufferObject . length ; counter ++ ) {
136
136
value += this . options . placeholder ;
137
137
}
138
- } else if ( ! raw ) {
139
- for ( counter = bufferObject . length ; counter ; counter -- ) {
140
- value += this . options . placeholder ;
138
+ } else {
139
+ if ( ! raw ) {
140
+ for ( counter = bufferObject . length ; counter ; counter -- ) {
141
+ value += this . options . placeholder ;
142
+ }
141
143
}
142
144
if ( bufferPosition < this . optionalPosition ) {
143
145
this . isValid = false ;
You can’t perform that action at this time.
0 commit comments