mirror of
https://github.com/PlaceholderAPI/PlaceholderAPI
synced 2026-02-26 05:51:12 +01:00
Merge remote-tracking branch 'origin/master'
This commit is contained in:
@@ -308,11 +308,11 @@ public final class PlaceholderAPI {
|
||||
if (text == null) {
|
||||
return false;
|
||||
}
|
||||
final int firstPercent = text.indexOf('{');
|
||||
if (firstPercent == -1) {
|
||||
final int openBracket = text.indexOf('{');
|
||||
if (openBracket == -1) {
|
||||
return false;
|
||||
}
|
||||
return text.indexOf('}', firstPercent + 1) != -1;
|
||||
return text.indexOf('}', openBracket + 1) != -1;
|
||||
}
|
||||
|
||||
// === Deprecated API ===
|
||||
|
||||
Reference in New Issue
Block a user