mirror of
https://github.com/SyncrowIOT/backend.git
synced 2026-10-24 21:37:54 +00:00
Refactor user service to use removeBase64Prefix utility function
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
export function removeBase64Prefix(dataUrl: string): string {
|
||||
return dataUrl.replace(/^data:image\/[a-z]+;base64,/, '');
|
||||
}
|
||||
Reference in New Issue
Block a user