Skip to content

Commit

Permalink
Merge pull request #100 from RyotaUshio/main
Browse files Browse the repository at this point in the history
  • Loading branch information
LostPaul authored Mar 26, 2024
2 parents 065000d + 486350e commit dc2e53c
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/ExcludeFolders/functions/folderFunctions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -150,4 +147,4 @@ export function addExcludeFolderListItem(settings: SettingsTab, containerEl: HTM
setting.settingEl.remove();
});
});
}
}

0 comments on commit dc2e53c

Please sign in to comment.