From 77f81cfb16925c8143ce8d3d27083d3e22752885 Mon Sep 17 00:00:00 2001 From: VictoriousRaptor <10308169+VictoriousRaptor@users.noreply.github.com> Date: Sun, 28 Dec 2025 22:04:37 +0800 Subject: [PATCH] Fix matching pattern for IPv6 addresses with consecutive ":" --- Plugins/Flow.Launcher.Plugin.Url/Main.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Plugins/Flow.Launcher.Plugin.Url/Main.cs b/Plugins/Flow.Launcher.Plugin.Url/Main.cs index f6d5e3fcf..2833a8d32 100644 --- a/Plugins/Flow.Launcher.Plugin.Url/Main.cs +++ b/Plugins/Flow.Launcher.Plugin.Url/Main.cs @@ -22,6 +22,7 @@ namespace Flow.Launcher.Plugin.Url "\\[(?:[0-9a-fA-F]{1,4}:){1,7}:\\]|" + // IPv6 with trailing :: "\\[(?:[0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}\\]|" + // IPv6 compressed "\\[::(?:[0-9a-fA-F]{1,4}:){0,6}[0-9a-fA-F]{1,4}\\]|" + // IPv6 with leading :: + "\\[(?:(?:[0-9a-fA-F]{1,4}:){1,6}|:):(?:[0-9a-fA-F]{1,4}:){0,5}[0-9a-fA-F]{1,4}\\]|" + // IPv6 with :: in the middle "\\[::1\\])" + // IPv6 loopback "|" + // IPv6 without brackets (only when no port follows) @@ -29,6 +30,7 @@ namespace Flow.Launcher.Plugin.Url "(?:[0-9a-fA-F]{1,4}:){1,7}:|" + // IPv6 with trailing :: "(?:[0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|" + // IPv6 compressed "::(?:[0-9a-fA-F]{1,4}:){0,6}[0-9a-fA-F]{1,4}|" + // IPv6 with leading :: + "(?:(?:[0-9a-fA-F]{1,4}:){1,6}|:):(?:[0-9a-fA-F]{1,4}:){0,5}[0-9a-fA-F]{1,4}|" + // IPv6 with :: in the middle "::1)(?!:[0-9])" + // IPv6 loopback (not followed by port) "|" + // IPv4 address - all valid addresses including private networks (excluding 0.0.0.0)