mirror of
https://github.com/qier222/YesPlayMusic.git
synced 2024-11-23 01:42:25 +08:00
replaced replaceAll() with replace() + regex
This commit is contained in:
parent
fff224a0bf
commit
1ec3134597
|
@ -137,8 +137,8 @@ export default {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
loginWithPhone({
|
loginWithPhone({
|
||||||
countrycode: this.countryCode.replace("+", "").replaceAll(" ", ""),
|
countrycode: this.countryCode.replace("+", "").replace(/\s/g, ''),
|
||||||
phone: this.phoneNumber.replaceAll(" ", ""),
|
phone: this.phoneNumber.replace(/\s/g, ''),
|
||||||
password: "fakePassword",
|
password: "fakePassword",
|
||||||
md5_password: md5(this.password).toString(),
|
md5_password: md5(this.password).toString(),
|
||||||
})
|
})
|
||||||
|
@ -156,7 +156,7 @@ export default {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
loginWithEmail({
|
loginWithEmail({
|
||||||
email: this.email.replaceAll(" ", ""),
|
email: this.email.replace(/\s/g, ''),
|
||||||
password: "fakePassword",
|
password: "fakePassword",
|
||||||
md5_password: md5(this.password).toString(),
|
md5_password: md5(this.password).toString(),
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue
Block a user