mirror of
https://github.com/SyncrowIOT/backend.git
synced 2025-07-15 02:15:21 +00:00
Refactor user service to use removeBase64Prefix utility function
This commit is contained in:
3
libs/common/src/helper/removeBase64Prefix.ts
Normal file
3
libs/common/src/helper/removeBase64Prefix.ts
Normal file
@ -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