Make REPLACER_PERCENT and REPLACER_BRACKET available for hijacking requests

This commit is contained in:
Armagidon 2023-04-19 14:17:19 +03:00
parent 744cf6d8c0
commit 659d78aa78
1 changed files with 2 additions and 2 deletions

View File

@ -43,8 +43,8 @@ import org.jetbrains.annotations.NotNull;
public final class PlaceholderAPI {
private static final Replacer REPLACER_PERCENT = new CharsReplacer(Closure.PERCENT);
private static final Replacer REPLACER_BRACKET = new CharsReplacer(Closure.BRACKET);
private static Replacer REPLACER_PERCENT = new CharsReplacer(Closure.PERCENT);
private static Replacer REPLACER_BRACKET = new CharsReplacer(Closure.BRACKET);
private static final Pattern PLACEHOLDER_PATTERN = Pattern.compile("[%]([^%]+)[%]");
private static final Pattern BRACKET_PLACEHOLDER_PATTERN = Pattern.compile("[{]([^{}]+)[}]");