Skip to content

Commit

Permalink
fix infinite loop when parsing empty nonnative subscription content (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaokangwang authored Oct 27, 2024
1 parent cab66de commit 2415b89
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/subscription/entries/nonnative/nonnative.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ func (a *AbstractNonNativeLink) fromBytes(bytes []byte) {
}

func (a *AbstractNonNativeLink) extractValue(content, prefix string) {
if content == "" {
return
}

{
// check if the content is a link
match, err := regexp.Match("[a-zA-Z0-9]+:((\\/\\/)|\\?)", []byte(content))
Expand Down

0 comments on commit 2415b89

Please sign in to comment.