mirror of
https://github.com/fanchenio/DawnLauncher.git
synced 2026-09-03 06:24:39 +08:00
修复(UNC)网络路径被识别成相对路径的问题。
This commit is contained in:
@@ -14,7 +14,7 @@ function convert<F, T>(from: F): T {
|
||||
* @returns
|
||||
*/
|
||||
function isAbsolutePath(path: string) {
|
||||
const regex = /^[a-zA-Z]:\\/;
|
||||
const regex = /^[a-zA-Z]:\\|^\\\\/;
|
||||
return regex.test(path);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user