You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-06-15 23:00:36 +02:00
Fixed regressions following fix for #1425
This commit is contained in:
@ -124,7 +124,10 @@ class BaseItem extends BaseModel {
|
||||
static pathToId(path) {
|
||||
let p = path.split('/');
|
||||
let s = p[p.length - 1].split('.');
|
||||
return s[0];
|
||||
let name = s[0];
|
||||
if (!name) return name;
|
||||
name.split('-');
|
||||
return name[name.length - 1];
|
||||
}
|
||||
|
||||
static loadItemByPath(path) {
|
||||
|
Reference in New Issue
Block a user