File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed
Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -2,9 +2,9 @@ if (String.prototype.replaceAll === undefined) {
22 String . prototype . replaceAll = function ( before , after ) {
33 let res = new String ( ) , matched = 0 ;
44 for ( let i = 0 ; i < this . length ; i += 1 ) {
5- if ( this [ i ] == before [ matched ] ) {
5+ if ( this [ i ] === before [ matched ] ) {
66 matched += 1 ;
7- if ( matched == before . length ) {
7+ if ( matched === before . length ) {
88 res += after ;
99 matched = 0 ;
1010 }
@@ -13,6 +13,11 @@ if (String.prototype.replaceAll === undefined) {
1313 res += this [ i ] ;
1414 }
1515 }
16+
17+ for ( let i = this . length - matched ; i < this . length ; i += 1 ) {
18+ res += this [ i ] ;
19+ }
20+
1621 return res ;
1722 } ;
1823}
Original file line number Diff line number Diff line change 1414 <el-form-item prop =" passwdrepeat" >
1515 <el-input type =" password" v-model =" ldata.passwdrepeat" ></el-input >
1616 </el-form-item >
17- <div class =" icon-lable" ><i class =" el-icon-message" /> Email</div >
17+ <div class =" icon-lable form-required " ><i class =" el-icon-message" /> Email</div >
1818 <el-form-item prop =" email" >
1919 <el-input type =" email" v-model =" ldata.email" ></el-input >
2020 </el-form-item >
You can’t perform that action at this time.
0 commit comments