mirror of
https://github.com/leanote/desktop-app.git
synced 2025-10-19 01:54:02 +00:00
避免导出文件名为空
This commit is contained in:
@@ -92,8 +92,10 @@ define(function() {
|
||||
while(filename.indexOf('--') != -1) {
|
||||
filename = this.replaceAll(filename, '--', '-');
|
||||
}
|
||||
// 最后一个-
|
||||
filename = filename.replace(/\-$/, '');
|
||||
if (filename.length > 1) {
|
||||
// 最后一个-
|
||||
filename = filename.replace(/\-$/, '');
|
||||
}
|
||||
return filename;
|
||||
},
|
||||
|
||||
|
Reference in New Issue
Block a user