Skip to content

Commit

Permalink
fix: fxi params errors
Browse files Browse the repository at this point in the history
  • Loading branch information
anotherso1a committed Jul 15, 2021
1 parent 611937e commit 62f295b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion j2t.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ function genCode(code) {


let json = {}
let params = args[0].replace(/_enter_/g, '\n').replace(/_nbsp_/g, ' ') // myshell will make params in cmd line, here to fix it
let params = args[0].replace(/_enter_/g, '\n').replace(/_nbsp_/g, ' ').replace(/_squote_/g, '\'') // myshell will make params in cmd line, here to fix it
try {
json = JSON.parse(params)
} catch (err) {
Expand Down

0 comments on commit 62f295b

Please sign in to comment.