这是我的 livescript 代码:
if (res = json.msg.match /^iSearchup\s(.*)$/i)? then
getReq("[url='http://urbanscraper.herokuapp.com/define/'][http://urbanscraper.herokuapp.com/define/[/url]" + encodeURIComponent(msg.splice(1, msg.length - 1).join(" ")) + ".json", function(res, passback)
if (res.word && res.definition){
@socket.send JSON.stringify {
type: \pmsg
nick: 'iPoddy:'
msg: json.from + ": " + res.word + " - " + res.definition
}
}
else {
@socket.send JSON.stringify {
type: \pmsg
nick: 'iPoddy:'
msg: json.from + ": Sorry, no results were returned."
}
}
那是我的代码。它给了我错误“dedent”,但我修复了它,它仍然再次给我那个错误。帮助?