We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a5ded07 commit 54712a7Copy full SHA for 54712a7
packages/components/src/lib/utils.ts
@@ -27,7 +27,6 @@ export function asyncBufferFrom(from: AsyncBufferFrom): Promise<AsyncBuffer> {
27
const cache = new Map<string, Promise<AsyncBuffer>>()
28
// TODO(SL): do we really want a singleton?
29
30
-
31
export function getFileDateShort(file?: { lastModified?: string }): string {
32
if (!file?.lastModified) return ''
33
const date = new Date(file.lastModified)
@@ -83,7 +82,6 @@ export function parseFileSize(headers: Headers): number | undefined {
83
82
return contentLength ? Number(contentLength) : undefined
84
}
85
86
-/// utils
87
export function getFileName(source: string): string {
88
const fileName = source
89
.replace(/\?.*$/, '') // remove query string
0 commit comments