Merge remote-tracking branch 'origin/master'

This commit is contained in:
ichocomilk
2026-02-04 19:50:07 -03:00

View File

@@ -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 ===