mirror of
https://github.com/DiscordSRV/Ascension.git
synced 2024-11-01 08:39:31 +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
|
Pattern.LITERAL
|
||||||
)
|
)
|
||||||
.matcher(input)
|
.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) {
|
private Object getResultRepresentation(List<PlaceholderLookupResult> results, String placeholder, Matcher matcher) {
|
||||||
|
Loading…
Reference in New Issue
Block a user