Skip to content

Commit

Permalink
Ensure Flatpak parser regex follows dbus bus name spec (#1875)
Browse files Browse the repository at this point in the history
  • Loading branch information
Micah-Kolide authored Oct 2, 2024
1 parent a6ba352 commit 64d6f6b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ee/tables/execparsers/flatpak/remote_ls/upgradeable/parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"regexp"
)

// The app id conforms to: [dbus specification](https://dbus.freedesktop.org/doc/dbus-specification.html#message-protocol-names)
var flatpakAppIdRegexp = regexp.MustCompile(`(([a-zA-Z0-9_]+\.){1,}([a-zA-Z0-9_]+))`)
// The app id conforms to: [dbus bus name specification](https://dbus.freedesktop.org/doc/dbus-specification.html#message-protocol-names)
var flatpakAppIdRegexp = regexp.MustCompile(`((?:[a-zA-Z_-]+[a-zA-Z0-9_-]*\.){1,}[a-zA-Z_-]+[a-zA-Z0-9_-]*)`)

// Wow this has been a head-pounding bugger of a thing.
//
Expand Down

0 comments on commit 64d6f6b

Please sign in to comment.