mirror of
https://github.com/fofolee/uTools-quickcommand.git
synced 2025-06-07 21:46:12 +08:00
修复路径中的反斜杠未全部转义的bug
This commit is contained in:
parent
dcb8529acb
commit
f51eb9d832
@ -4,7 +4,7 @@
|
||||
|
||||
let escapeItem = item => {
|
||||
if (typeof item === 'number') return item
|
||||
item = typeof item === 'object' ? JSON.stringify(item) : item.replace('\\', '\\\\')
|
||||
item = typeof item === 'object' ? JSON.stringify(item) : item.replace(/\\/g, '\\\\')
|
||||
return item.replace('$', '$$$')
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user