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
parent
ee07b98755
commit
6dec26f9cc
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue