Skip to content

Commit

Permalink
Removed console.log statements which slipped in 2.1.1
Browse files Browse the repository at this point in the history
Version bump before release
  • Loading branch information
SebastianMC committed Nov 24, 2023
1 parent cc1429d commit b5a9684
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion manifest.json
@@ -1,7 +1,7 @@
{
"id": "custom-sort",
"name": "Custom File Explorer sorting",
"version": "2.1.1",
"version": "2.1.2",
"minAppVersion": "0.16.2",
"description": "Allows for manual and automatic, config-driven reordering and sorting of files and folders in File Explorer",
"author": "SebastianMC",
Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "obsidian-custom-sort",
"version": "2.1.1",
"version": "2.1.2",
"description": "Custom Sort plugin for Obsidian (https://obsidian.md)",
"main": "main.js",
"scripts": {
Expand Down
2 changes: 0 additions & 2 deletions src/custom-sort/custom-sort.ts
Expand Up @@ -372,15 +372,13 @@ export const determineSortingGroup = function (entry: TFile | TFolder, spec: Cus
switch (group.type) {
case CustomSortGroupType.ExactPrefix:
if (group.exactPrefix) {
console.log(`Exact prefix check`)
if (nameForMatching.startsWith(group.exactPrefix)) {
determined = true;
}
} else { // regexp is involved
const [matched, matchedGroup] = matchGroupRegex(group.regexPrefix!, nameForMatching)
determined = matched
derivedText = matchedGroup ?? derivedText
console.log(`Exact regexp prefix check ${group.regexPrefix?.regex?.toString()} vs. ${nameForMatching} = ${matched}`)
}
break;
case CustomSortGroupType.ExactSuffix:
Expand Down
3 changes: 2 additions & 1 deletion versions.json
Expand Up @@ -35,5 +35,6 @@
"2.0.1": "0.16.2",
"2.0.2": "0.16.2",
"2.1.0": "0.16.2",
"2.1.1": "0.16.2"
"2.1.1": "0.16.2",
"2.1.2": "0.16.2"
}

0 comments on commit b5a9684

Please sign in to comment.