update fix eslint,

This commit is contained in:
2025-05-16 12:51:32 +08:00
parent af5040ac6c
commit 57e25ef65f
144 changed files with 277 additions and 2597 deletions

View File

@@ -15,7 +15,7 @@ export function base64ToFile(base64String: string, filename?: string): Promise<F
return new Promise((resolve, reject) => {
const arr = base64String.split(',');
// eslint-disable-next-line prefer-named-capture-group
const type = arr[0].match(/:(.*?);/)![1];
const type = /:(.*?);/.exec(arr[0])![1];
const bstr = atob(arr[1]);
let n = bstr.length;
const u8arr = new Uint8Array(n);