From 6dec26f9cc90da6ffb3982f918be5b1e601088f8 Mon Sep 17 00:00:00 2001 From: Aleksei Romanenko <478249+slimus@users.noreply.github.com> Date: Wed, 20 Jul 2022 16:24:56 -0500 Subject: [PATCH] Fix PF delete with no container (#1668) * Fix PF delete with no container * Fix PF delete with no container Co-authored-by: Aleksei Romanenko --- internal/view/pf.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/view/pf.go b/internal/view/pf.go index 51bd12ad..70423281 100644 --- a/internal/view/pf.go +++ b/internal/view/pf.go @@ -177,7 +177,7 @@ func (p *PortForward) deleteCmd(evt *tcell.EventKey) *tcell.EventKey { // ---------------------------------------------------------------------------- // Helpers... -var selRx = regexp.MustCompile(`\A([\w-]+)/([\w-]+)\|([\w-]+)\|(\d+):(\d+)`) +var selRx = regexp.MustCompile(`\A([\w-]+)/([\w-]+)\|([\w-]+)?\|(\d+):(\d+)`) func pfToHuman(s string) (string, error) { mm := selRx.FindStringSubmatch(s)