Skip to content

Commit 1b400fd

Browse files
authored
Fix/file extension (#37)
* fix: fix generateName * 0.3.6
1 parent c914f34 commit 1b400fd

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,11 @@ QQ 群号:643205479
5555

5656
## 版本日志
5757

58-
最新版本:`0.3.5`
58+
最新版本:`0.3.6`
59+
60+
### 0.3.6
61+
62+
1. `F` 修复 Uploader.generateName()
5963

6064
### 0.3.5
6165

lib/file/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export class Uploader {
5454
*/
5555
public generateName(filename: string) {
5656
const ext = path.extname(filename);
57-
return `${uuid.v4()}{ext}`;
57+
return `${uuid.v4()}${ext}`;
5858
}
5959

6060
/**

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "lin-mizar",
3-
"version": "0.3.5",
3+
"version": "0.3.6",
44
"description": "The core library of Lin CMS",
55
"main": "lin/index.js",
66
"scripts": {

0 commit comments

Comments
 (0)