修复若路径存在 # 字符时,软件无法启动的问题(#1461)
This commit is contained in:
@@ -39,5 +39,6 @@ export const clipboardReadText = (): string => {
|
||||
|
||||
export const encodePath = (path: string) => {
|
||||
// https://github.com/lyswhut/lx-music-desktop/issues/963
|
||||
return path.replaceAll('%', '%25')
|
||||
// https://github.com/lyswhut/lx-music-desktop/issues/1461
|
||||
return path.replaceAll('%', '%25').replaceAll('#', '%23')
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user