mirror of
https://github.com/aljazceru/njump.git
synced 2026-02-23 06:54:20 +01:00
fix: check tag length on enhanced event.
This commit is contained in:
@@ -32,6 +32,10 @@ func NewEnhancedEvent(
|
||||
ee := EnhancedEvent{Event: event}
|
||||
|
||||
for _, tag := range event.Tags {
|
||||
if len(tag) < 2 {
|
||||
continue
|
||||
}
|
||||
|
||||
if tag[0] == "subject" || tag[0] == "title" {
|
||||
ee.subject = tag[1]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user