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