mirror of
https://github.com/quinton-ashley/java2js
synced 2024-12-29 10:11:54 +01:00
1.1.3
This commit is contained in:
parent
eb2bc3e8c8
commit
ae0e57da70
2
jdk.js
2
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
|
||||
|
@ -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": {
|
||||
|
Loading…
x
Reference in New Issue
Block a user