Skip to content

Commit

Permalink
Chat Trigger replaces complex regex + tag combinations correctly, now.
Browse files Browse the repository at this point in the history
  • Loading branch information
aufdemrand committed Apr 8, 2013
1 parent 7b4cf5f commit 2097ef0
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -130,7 +130,8 @@ public void chatTrigger(AsyncPlayerChatEvent event) {
// REGEX matches are left for last, so save it in case non-REGEX
// matches don't exist
regexId = entry.getKey();
regexMessage = entry.getValue().replace("/" + keyword + "/", m.group());
regexMessage = entry.getValue().replace(matcher.group(), m.group());
dB.log("entry value: " + entry.getValue() + " keyword: " + keyword + " m.group: " + m.group() + " matcher.group: " + matcher.group());
}
}
else if (isKeywordStrict(keyword)) {
Expand Down

0 comments on commit 2097ef0

Please sign in to comment.