Merge pull request #100 from RyotaUshio/main

This commit is contained in:
Lost Paul 2024-03-26 13:10:28 +01:00 committed by GitHub
commit dc2e53c589
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -9,12 +9,9 @@ import ExcludedFolderSettings from '../modals/ExcludeFolderSettings';
import { updatePattern, getExcludedFolderByPattern, addExcludePatternListItem } from './patternFunctions';
export function getExcludedFolder(plugin: FolderNotesPlugin, path: string) {
console.log('get excluded folder', path);
const folderName = getFolderNameFromPathString(path);
const matchedPattern = getExcludedFolderByPattern(plugin, folderName);
if (matchedPattern) { return matchedPattern; }
console.log('test 3', path);
console.log('test 4', folderName)
const excludedFolder = getExcludedFolderByPath(plugin, path);
if (excludedFolder?.path === '') { return; }
return excludedFolder;
@ -150,4 +147,4 @@ export function addExcludeFolderListItem(settings: SettingsTab, containerEl: HTM
setting.settingEl.remove();
});
});
}
}