mirror of
https://github.com/fofolee/uTools-quickcommand.git
synced 2025-09-23 20:44:42 +08:00
修复路径中的反斜杠未全部转义的bug
This commit is contained in:
@@ -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('$', '$$$')
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user