|
5 | 5 | importjava.io.File;
|
6 | 6 | importjava.io.IOException;
|
7 | 7 | importjava.nio.file.*;
|
| 8 | +importjava.util.Arrays; |
8 | 9 | importjava.util.ArrayList;
|
9 | 10 | importjava.util.List;
|
10 | 11 | importjava.util.regex.Pattern;
|
@@ -63,7 +64,6 @@ public static void main(String[] args) throws IOException {
|
63 | 64 | "\n- [",
|
64 | 65 | " board = [[",
|
65 | 66 | " grid = [[",
|
66 |
| -"[[", |
67 | 67 | "**,",
|
68 | 68 | "**]",
|
69 | 69 | "(**",
|
@@ -91,7 +91,6 @@ public static void main(String[] args) throws IOException {
|
91 | 91 | "\n-\\[",
|
92 | 92 | " board = [ [",
|
93 | 93 | " grid = [ [",
|
94 |
| -"\\[\\[", |
95 | 94 | "** ,",
|
96 | 95 | "** ]",
|
97 | 96 | "( **",
|
@@ -119,6 +118,12 @@ public static void main(String[] args) throws IOException {
|
119 | 118 | :javaFile.getAbsolutePath().endsWith(".kt")
|
120 | 119 | ?Type.KOTLIN
|
121 | 120 | :null);
|
| 121 | +if (type ==Type.JAVA) { |
| 122 | +fromStr =Arrays.copyOf(fromStr,fromStr.length +1); |
| 123 | +fromStr[fromStr.length -1] ="[["; |
| 124 | +toStr =Arrays.copyOf(toStr,toStr.length +1); |
| 125 | +toStr[toStr.length -1] ="[["; |
| 126 | + } |
122 | 127 | StringreadmeMdJavadoc =
|
123 | 128 | "/**\n"
|
124 | 129 | +StringUtils.replaceEach(
|
|