Mirror von
https://github.com/PaperMC/Velocity.git
synchronisiert 2024-12-24 15:20:35 +01:00
Ursprung
f7f4620b53
Commit
1fe01596d2
@ -212,8 +212,8 @@ public abstract class AnnotatedConfig {
|
||||
}
|
||||
|
||||
protected static String escapeKeyIfNeeded(String key) {
|
||||
if (key.contains(".") && !(key.indexOf('"') == 0 && key.lastIndexOf('"') == (key.length()
|
||||
- 1))) {
|
||||
if ((key.contains(".") || key.contains(" "))
|
||||
&& !(key.indexOf('"') == 0 && key.lastIndexOf('"') == (key.length() - 1))) {
|
||||
return '"' + key + '"';
|
||||
}
|
||||
return key;
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren