Skip to content

Commit

Permalink
fix windows pkg util
Browse files Browse the repository at this point in the history
  • Loading branch information
zackattack01 committed Aug 16, 2024
1 parent 0002586 commit 56de510
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/launcher/pkg_utils_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ var nonAlphanumericRegex = regexp.MustCompile(`[^a-zA-Z0-9]+`)
func ServiceName(identifier string) string {
// this check might be overkill but is intended to prevent any backwards compatibility/misconfiguration issues
if strings.TrimSpace(identifier) == "" {
identifier = defaultLauncherIdentifier
identifier = DefaultLauncherIdentifier
}

sanitizedServiceName := nonAlphanumericRegex.ReplaceAllString(identifier, "_") // e.g. identifier=kolide-k2 becomes kolide_k2
Expand Down

0 comments on commit 56de510

Please sign in to comment.