From bb2b510ae8d5490f6ddfe6b34cbaee534c21bd61 Mon Sep 17 00:00:00 2001 From: SebastianMC <23032356+SebastianMC@users.noreply.github.com> Date: Tue, 26 Sep 2023 19:58:00 +0200 Subject: [PATCH] #74 - Integration with Bookmarks core plugin and support for indirect drag & drop arrangement - fix suggested by github code check --- src/main.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.ts b/src/main.ts index be6ad8a..ce2e52e 100644 --- a/src/main.ts +++ b/src/main.ts @@ -516,7 +516,7 @@ export default class CustomSortPlugin extends Plugin { } const pathToFlatString = (path: string): string => { - return path.replace('/','_').replace('\\', '_') + return path.replace(/\//g,'_').replace(/\\/g, '_') } class CustomSortSettingTab extends PluginSettingTab {