From 6b459c94a2d717ed03e4bc99aabbe936b19f1eeb Mon Sep 17 00:00:00 2001 From: Golden Looly Date: Thu, 8 Jun 2023 17:16:29 +0800 Subject: [PATCH] =?UTF-8?q?Revert=20"punycode=E4=B8=AD=E5=A4=A7=E5=86=99?= =?UTF-8?q?=E5=AD=97=E6=AF=8D=E8=A7=A3=E7=A0=81=E5=BC=82=E5=B8=B8=E9=97=AE?= =?UTF-8?q?=E9=A2=98=E4=BF=AE=E5=A4=8D=EF=BC=8C=E7=BB=9F=E4=B8=80=E7=BC=96?= =?UTF-8?q?=E7=A0=81=E5=92=8C=E8=A7=A3=E7=A0=81=E4=B8=BA=E5=B0=8F=E5=86=99?= =?UTF-8?q?"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hutool-core/src/main/java/cn/hutool/core/codec/PunyCode.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/hutool-core/src/main/java/cn/hutool/core/codec/PunyCode.java b/hutool-core/src/main/java/cn/hutool/core/codec/PunyCode.java index 990d6364f..ea3b32db5 100644 --- a/hutool-core/src/main/java/cn/hutool/core/codec/PunyCode.java +++ b/hutool-core/src/main/java/cn/hutool/core/codec/PunyCode.java @@ -36,7 +36,6 @@ public class PunyCode { */ public static String encodeDomain(String domain) throws UtilException { Assert.notNull(domain, "domain must not be null!"); - domain = domain.toLowerCase(); final List split = StrUtil.split(domain, CharUtil.DOT); final StringBuilder result = new StringBuilder(domain.length() * 4); for (final String str : split) { @@ -157,7 +156,6 @@ public class PunyCode { */ public static String decodeDomain(String domain) throws UtilException { Assert.notNull(domain, "domain must not be null!"); - domain = domain.toLowerCase(); final List split = StrUtil.split(domain, CharUtil.DOT); final StringBuilder result = new StringBuilder(domain.length() / 4 + 1); for (final String str : split) {