1
mirror of https://github.com/CarmJos/EasyConfiguration.git synced 2026-06-04 10:38:19 +08:00

feat: Support standard "pre-load" option

This commit is contained in:
2025-02-18 21:47:58 +08:00
parent bf716b06ae
commit 476cb79e2f
7 changed files with 19 additions and 24 deletions
@@ -26,7 +26,7 @@ public class Commentable {
String comment = getInlineComment(holder, path, null);
if (comment != null) return comment;
String sep = String.valueOf(holder.options().get(StandardOptions.PATH_SEPARATOR));
String sep = String.valueOf(holder.option(StandardOptions.PATH_SEPARATOR));
// If the comment is not found, try to get the comment from the parent section
String[] keys = path.split(Pattern.quote(sep));