Remove claim that good.string.quote should be used.

This commit is contained in:
Neil Fraser
2016-06-02 16:31:49 -07:00
parent 0502fca2c3
commit bfa842c9a8
5 changed files with 4 additions and 5 deletions

View File

@@ -143,7 +143,6 @@ Blockly.Lua.scrubNakedValue = function(line) {
* @private
*/
Blockly.Lua.quote_ = function(string) {
// TODO: This is a quick hack. Replace with goog.string.quote
string = string.replace(/\\/g, '\\\\')
.replace(/\n/g, '\\\n')
.replace(/'/g, '\\\'');