4 lines
158 B
TypeScript
4 lines
158 B
TypeScript
![]() |
export function extractFileIdFromNginxUrl(url: string) {
|
||
|
const match = url.match(/uploads\/(\d{4}\/\d{2}\/\d{2}\/[^/]+)/);
|
||
|
return match ? match[1] : '';
|
||
|
}
|