From 60c40f017dc5c9e7ec962408cce80f37e5d14c17 Mon Sep 17 00:00:00 2001 From: MiniDay <372403923@qq.com> Date: Wed, 31 May 2023 08:42:23 +0800 Subject: [PATCH] =?UTF-8?q?feat(hamster-core-bukkit):=20=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E6=8C=87=E4=BB=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mc/plugin/core/bukkit/command/core/sub/EnvCommand.java | 2 +- .../mc/plugin/core/bukkit/command/core/sub/SystemCommand.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hamster-core-bukkit/src/main/java/cn/hamster3/mc/plugin/core/bukkit/command/core/sub/EnvCommand.java b/hamster-core-bukkit/src/main/java/cn/hamster3/mc/plugin/core/bukkit/command/core/sub/EnvCommand.java index 5736ce3..9563f3c 100644 --- a/hamster-core-bukkit/src/main/java/cn/hamster3/mc/plugin/core/bukkit/command/core/sub/EnvCommand.java +++ b/hamster-core-bukkit/src/main/java/cn/hamster3/mc/plugin/core/bukkit/command/core/sub/EnvCommand.java @@ -51,7 +51,7 @@ public class EnvCommand extends ChildCommand { String lowerCase = args[0].toLowerCase(); return System.getenv().keySet() .stream() - .filter(o -> o.startsWith(lowerCase)) + .filter(o -> o.toLowerCase().startsWith(lowerCase)) .collect(Collectors.toList()); } return Collections.emptyList(); diff --git a/hamster-core-bukkit/src/main/java/cn/hamster3/mc/plugin/core/bukkit/command/core/sub/SystemCommand.java b/hamster-core-bukkit/src/main/java/cn/hamster3/mc/plugin/core/bukkit/command/core/sub/SystemCommand.java index 6d6b415..63fbb8e 100644 --- a/hamster-core-bukkit/src/main/java/cn/hamster3/mc/plugin/core/bukkit/command/core/sub/SystemCommand.java +++ b/hamster-core-bukkit/src/main/java/cn/hamster3/mc/plugin/core/bukkit/command/core/sub/SystemCommand.java @@ -52,7 +52,7 @@ public class SystemCommand extends ChildCommand { return System.getProperties().keySet() .stream() .map(Object::toString) - .filter(o -> o.startsWith(lowerCase)) + .filter(o -> o.toLowerCase().startsWith(lowerCase)) .collect(Collectors.toList()); } return Collections.emptyList();