Skip to content

Commit

Permalink
fix: gsub
Browse files Browse the repository at this point in the history
  • Loading branch information
finxxi committed Sep 24, 2024
1 parent ee4b500 commit a6e2c5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/sf/term.lua
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ function Term.run_highlighted_soql()

-- local raw_cmd = string.format('sf data query -q "%s" -o %s', selected_text, U.get())
local raw_cmd = B:new():cmd("data"):act("query"):addParams("-q", selected_text):build()
local cmd = string.gsub(raw_cmd, "'", "'")
local cmd = string.gsub(raw_cmd, "'", "\\'")
t:run(cmd)
end

Expand Down

0 comments on commit a6e2c5c

Please sign in to comment.