Fix PsycNet full-text section extraction - #362
Open
absurd wants to merge 1 commit into
Open
Conversation
APA PsycNet wraps article body sections in ftJumpToAnchor. The unbounded jumpto partial selector matched that class case-insensitively and removed each section while leaving the abstract and references behind. Require alphanumeric boundaries around jumpto so standalone navigation classes are still removed without matching the longer article-section token. Add an anonymized fixture that covers both behaviors and stays above the short-content retry threshold.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Reproduction: https://psycnet.apa.org/fulltext/2026-28269-001.html
Summary
.ftJumpToAnchor. The case-insensitivejumptopartial selector matched that longer class token and removed every body section while leaving unaffected material such as the abstract and references.jumptoso standalone.jumptonavigation controls are still removed without matchingftJumpToAnchor.Verification
main: both anchored body sections disappear while the abstract and references remain.npm test— 444 tests pass.npm run lint:innerhtml,npm run build, andnpm run sizepass.