We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents bf7677e + b359738 commit c5fca95Copy full SHA for c5fca95
src/utils/reName.ts
@@ -3,12 +3,11 @@ import * as path from 'path'
3
4
export function reName(nameType: string, url: string): string {
5
const fileName = path.basename(url)
6
- const extname = path.extname(url)
7
switch (nameType) {
8
case NameType.timestamp:
9
- return `${Date.now()}${extname}`
+ return `${Date.now()}$`
10
case NameType.none:
11
default:
12
- return `${fileName}${extname}`
+ return `${fileName}$`
13
}
14
0 commit comments