mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-08 03:33:56 +00:00
Fix systemd unit string matchs
This commit is contained in:
parent
fc786dcd1d
commit
62267518b8
@ -53,7 +53,7 @@ var (
|
||||
// The set of known safe characters to pass to journalctl / GetWinEvent flags - only add to this list if the
|
||||
// character cannot be used to create invalid sequences. This is intended as a broad defense against malformed
|
||||
// input that could cause an escape.
|
||||
reServiceNameUnsafeCharacters = regexp.MustCompile(`[^a-zA-Z\-_0-9@]+`)
|
||||
reServiceNameUnsafeCharacters = regexp.MustCompile(`[^a-zA-Z\-_.:0-9@]+`)
|
||||
)
|
||||
|
||||
// journalServer returns text output from the OS specific service logger to view
|
||||
|
Loading…
Reference in New Issue
Block a user