diff --git a/chat/src/main/java/net/md_5/bungee/api/chat/TextComponent.java b/chat/src/main/java/net/md_5/bungee/api/chat/TextComponent.java index 0971a384c7..ec63a4cb22 100644 --- a/chat/src/main/java/net/md_5/bungee/api/chat/TextComponent.java +++ b/chat/src/main/java/net/md_5/bungee/api/chat/TextComponent.java @@ -18,7 +18,7 @@ public final class TextComponent extends BaseComponent { - private static final Pattern url = Pattern.compile( "^(?:(https?)://)?([-\\w_\\.]{2,}\\.[a-z]{2,4})(/\\S*)?$" ); + private static final Pattern url = Pattern.compile( "^(?:https?://([-\\w_\\.]+\\.[a-z-]{2,24})|([-\\w_\\.]{2,}\\.[a-z]{2,4}))(/\\S*)?$" ); /** * Converts the old formatting system that used