Verified Commit 4a67aed8 authored by Daniel Mangold's avatar Daniel Mangold
Browse files

Fixed regex

parent 5f7e0c2e
......@@ -279,15 +279,16 @@ public class Utils {
try (BufferedReader reader = new BufferedReader(new FileReader(configData.getString("file")))) {
boolean insert = false;
for (String line = reader.readLine(); !line.matches("\\w*// ##<<<.*"); line = reader.readLine()) {
if (line.matches("\\w*// >>>##.*")) {
for (String line = reader.readLine(); !line.matches("\\s*// ##<<<.*"); line = reader.readLine()) {
if (line.matches("\\s*// >>>##.*")) {
reader.readLine();
line = reader.readLine();
insert = true;
}
if (insert)
configFileContents.append(line);
configFileContents.append(line).append("\n");
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment