mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-06-29 02:07:39 +08:00
Note: Not all files end with a '.md'
This was only supposed to be done for new files
This commit is contained in:
@ -58,10 +58,13 @@ class Note with NotesNotifier {
|
||||
}
|
||||
|
||||
String get filePath {
|
||||
_filePath ??= p.join(parent.folderPath, getFileName(this));
|
||||
if (_filePath == null) {
|
||||
_filePath = p.join(parent.folderPath, getFileName(this));
|
||||
if (!_filePath.toLowerCase().endsWith('.md')) {
|
||||
_filePath += '.md';
|
||||
}
|
||||
}
|
||||
|
||||
return _filePath;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user