mirror of
https://github.com/DiscordSRV/Ascension.git
synced 2024-10-31 08:32:18 +01:00
Fix PlaceholderServiceImpl#updateContent not quoting replacement
This commit is contained in:
parent
7aa6191a27
commit
ea404ec7ab
@ -217,7 +217,7 @@ public class PlaceholderServiceImpl implements PlaceholderService {
|
||||
Pattern.LITERAL
|
||||
)
|
||||
.matcher(input)
|
||||
.replaceFirst(output instanceof String ? (String) output : output.toString());
|
||||
.replaceFirst(Matcher.quoteReplacement(output.toString()));
|
||||
}
|
||||
|
||||
private Object getResultRepresentation(List<PlaceholderLookupResult> results, String placeholder, Matcher matcher) {
|
||||
|
Loading…
Reference in New Issue
Block a user