Fix PF delete with no container (#1668)

* Fix PF delete with no container

* Fix PF delete with no container

Co-authored-by: Aleksei Romanenko <alex.romanenko@linkup.com>
mine
Aleksei Romanenko 2022-07-20 16:24:56 -05:00 committed by GitHub
parent ee07b98755
commit 6dec26f9cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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)