Commit 0144dcf1 authored by Kostis Trantzas's avatar Kostis Trantzas
Browse files

Merge branch...

Merge branch '44-lcm-text-literal-operator-improperly-escapes-quotation-marks-in-text' into 'develop'

Resolve "LCM text literal operator improperly escapes quotation marks in text"

See merge request !40
parents 2bde1397 61546873
Loading
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -155,7 +155,8 @@ export class BlocklyJavaService {
      // TODO: This is a quick hack.  Replace with goog.string.quote
      s = s.replace(/\\/g, '\\\\')
        .replace(/\n/g, '\\\n')
        .replace(/'/g, '\\\'');
        .replace(/'/g, '\\\'')
        .replace(/"/g, '\\"');
      return '"' + s + '"';
    };