From 1d9b49f4bd9a9ad6761e16aa4f7adcf5ddab1085 Mon Sep 17 00:00:00 2001 From: NorbiPeti Date: Fri, 29 Jul 2016 18:50:00 +0200 Subject: [PATCH] Fixed things, added project file --- .gitignore | 1 - p.javaproj => .project | 8 +++++++- .../thebuttonmcchat/ChatFormatter.java | 19 ++----------------- 3 files changed, 9 insertions(+), 19 deletions(-) rename p.javaproj => .project (62%) diff --git a/.gitignore b/.gitignore index 77d9874..035f367 100644 --- a/.gitignore +++ b/.gitignore @@ -3,7 +3,6 @@ ################# *.pydevproject -.project .metadata/ bin/ tmp/ diff --git a/p.javaproj b/.project similarity index 62% rename from p.javaproj rename to .project index 17a4a46..032136e 100644 --- a/p.javaproj +++ b/.project @@ -1,6 +1,6 @@ - TheButtonAutoFlair + TheButtonMinecraftChat @@ -10,8 +10,14 @@ + + org.eclipse.m2e.core.maven2Builder + + + + org.eclipse.m2e.core.maven2Nature org.eclipse.jdt.core.javanature diff --git a/src/buttondevteam/thebuttonmcchat/ChatFormatter.java b/src/buttondevteam/thebuttonmcchat/ChatFormatter.java index a8868da..4a0b688 100644 --- a/src/buttondevteam/thebuttonmcchat/ChatFormatter.java +++ b/src/buttondevteam/thebuttonmcchat/ChatFormatter.java @@ -26,22 +26,7 @@ public final class ChatFormatter { this.priority = Priority.High; } - public ChatFormatter(Pattern regex, Format format, String openlink) { // TODO: - // Openlink - // won't - // be - // replaced, - // as - // the - // original - // string - // should - // be; - // replace - // $1 - // with - // match - // TODO: Get indexes and work with those + public ChatFormatter(Pattern regex, Format format, String openlink) { this.regex = regex; this.format = format; this.openlink = openlink; @@ -72,7 +57,7 @@ public final class ChatFormatter { public static String Combine(List formatters, String str) { /* - * This method assumes that there are always a global formatter + * This method assumes that there is always a global formatter */ ArrayList sections = new ArrayList(); for (ChatFormatter formatter : formatters) {