diff --git a/jdk.js b/jdk.js index 8f65d64..4c6a8cc 100755 --- a/jdk.js +++ b/jdk.js @@ -183,7 +183,7 @@ // workaround hack for converting triple quotes to a normal string file = file.replace(/"""([^"]*)"""/gm, (match, p1) => { - return '(' + p1.replace(/( |\t){0,3}(.*)(\n|$)/gm, '"$2\\n"+').slice(0, -1) + ')'; + return '(' + p1.replace(/( |\t){0,3}(.*)(\r*\n|$)/gm, '"$2\\n"+').slice(0, -1) + ')'; }); // hacky support for Array literals diff --git a/package.json b/package.json index d389b05..8efa787 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "java2js", - "version": "1.1.2", + "version": "1.1.3", "description": "Converts Java to JavaScript with support for p5.js and QuintOS.", "main": "jdk.js", "scripts": {