不要怂,就是干,撸起袖子干!

Commit 38d1b8bf by Sascha Depold

replace all ticks in removeTicks

1 parent 3f2e7322
Showing with 1 additions and 1 deletions
...@@ -41,7 +41,7 @@ var Utils = module.exports = { ...@@ -41,7 +41,7 @@ var Utils = module.exports = {
return Utils.TICK_CHAR + Utils.removeTicks(s) + Utils.TICK_CHAR return Utils.TICK_CHAR + Utils.removeTicks(s) + Utils.TICK_CHAR
}, },
removeTicks: function(s) { removeTicks: function(s) {
return s.replace("`", "") return s.replace(new RegExp(Utils.TICK_CHAR, 'g'), "")
}, },
escape: function(s) { escape: function(s) {
return connection.escape(s).replace(/\\"/g, '"') return connection.escape(s).replace(/\\"/g, '"')
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!