Skip to content

Commit

Permalink
Update marshaler.go Fix Prefix Bug.
Browse files Browse the repository at this point in the history
Changed TrimLeft to TrimPrefix in order to fix the callsigns starting with A bug.
  • Loading branch information
jwuensch committed May 30, 2023
1 parent d345cf5 commit aa07619
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion framework/marshaler/marshaler.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const prefix = "APRS: "

// Unmarshals a raw APRS packet string to a Packet
func Unmarshal(raw string) (*aprs.Packet, error) {
raw = strings.TrimLeft(raw, prefix)
raw = strings.TrimPrefix(raw, prefix)

defer func() {
if err := recover(); err != nil {
Expand Down

0 comments on commit aa07619

Please sign in to comment.