Enable ESLint no-useless-escape (#23311)

This commit is contained in:
Nick Schonning
2023-02-13 09:12:14 -05:00
committed by GitHub
parent 4da5f77d92
commit db2c58d47a
12 changed files with 11 additions and 12 deletions

View File

@ -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);