You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -114,8 +114,8 @@ export function normalizePath2(path: string) {
114
114
if(isWindows()){
115
115
// The platform is Windows.
116
116
// Convert / to \
117
-
path=path.replace(/\//g,"\\");// Need to use a regexp instead of a normal "/" -> "\\" replace because the normal replace would only replace first occurrence of /.
118
-
leading_slashes=leading_slashes.replace(/\//g,"\\");// Same here.
117
+
path=path.replace(/\//gu,"\\");// Need to use a regexp instead of a normal "/" -> "\\" replace because the normal replace would only replace first occurrence of /.
118
+
leading_slashes=leading_slashes.replace(/\//gu,"\\");// Same here.
119
119
}
120
120
// Now ensure that path still contains leading slashes (if there were any before calling normalizePath()).
121
121
// Check that the path should have a similar set of leading slashes at the beginning. It can be at least "/" (on linux/Mac), or "\\" (on Windows when it's a network path), in theory even "///" or "\\\\\" whatever.
@@ -173,9 +173,9 @@ export function generateObsidianCommandName(plugin: SC_Plugin, shell_command: st
0 commit comments