Skip to content

fix(announcements): parse link href tag ending with > or /> in Atom RSS feed - #162

Open
amir-rezaei wants to merge 1 commit into
mont127:mainfrom
amir-rezaei:fix/announcement-checker-atom-link-parsing
Open

fix(announcements): parse link href tag ending with > or /> in Atom RSS feed#162
amir-rezaei wants to merge 1 commit into
mont127:mainfrom
amir-rezaei:fix/announcement-checker-atom-link-parsing

Conversation

@amir-rezaei

Copy link
Copy Markdown

Description

This PR updates AnnouncementChecker.extractLinkHref in Sources/AnnouncementChecker.swift.

Details

  • Matches > closing delimiters so Atom feed <link ...> elements formatted with standard > instead of /> self-closing syntax extract the announcement URL correctly.

@realmaitreal realmaitreal left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The code change is a correct generalization: matching the first > after <link instead of requiring the exact /> self-closing form handles both self-closed and normally-closed <link> tags. Since /> always ends in >, this is strictly more permissive without over-matching for well-formed feed XML.

Nit: the PR title/description contain literal unescaped &gt; text ("ending with > or />") — reads like an escaping artifact from whatever generated this PR. Worth fixing the title so it doesn't imply the code is matching literal &gt; entities (it isn't — it's matching >).


Generated by Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants