Enable ESLint no-useless-escape (#23311)
This commit is contained in:
parent
4da5f77d92
commit
db2c58d47a
12 changed files with 11 additions and 12 deletions
|
|
@ -8,7 +8,7 @@ import { me } from '../../initial_state';
|
|||
const urlBase64ToUint8Array = (base64String) => {
|
||||
const padding = '='.repeat((4 - base64String.length % 4) % 4);
|
||||
const base64 = (base64String + padding)
|
||||
.replace(/\-/g, '+')
|
||||
.replace(/-/g, '+')
|
||||
.replace(/_/g, '/');
|
||||
|
||||
return decodeBase64(base64);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue