update regex to allow '%' and '/' in column names (#3123)

mine
Ümüt Özalp 2025-02-17 16:19:39 +01:00 committed by GitHub
parent 5aeb09f72d
commit f8f112933d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@ import (
"k8s.io/kubectl/pkg/cmd/get"
)
var fullRX = regexp.MustCompile(`\A([\w\s-]+)\:?([^\|]*)\|?([T|N|W|L|R|H]{0,3})\b`)
var fullRX = regexp.MustCompile(`\A([\w\s%/\-]+)\:?([^\|]*)\|?([T|N|W|L|R|H]{0,3})\b`)
type colAttr byte