Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line numberDiff line numberDiff line change
Expand Up@@ -142,7 +142,7 @@ private void replaceKeywords(final CommandSource sender) {
String line = input.getLines().get(i);

// Skip processing b64 encoded items, they will not have keywords in them.
if (line.charAt(0) == '@') {
if (line.startsWith("@")) {
replaced.add(line);
continue;
}
Expand DownExpand Up@@ -383,7 +383,7 @@ private String replaceLine(String line, final String fullMatch, final String[] m

if (this.replaceSpacesWithUnderscores) {
// Don't replace spaces with underscores in command nor escape underscores.
if (line.charAt(0) != '/') {
if (line.startsWith("/")) {
replacer = replacer.replace("_", "\\_").replaceAll("\\s", "_");
}
}
Expand Down