Skip to content

fix: parse single-quoted CFF author fields - #77

Merged
beanbean9339 merged 1 commit into
mainfrom
fix/issue-76-single-quoted-author-values
Oct 12, 2026
Merged

beanbean9339 merged 1 commit into
mainfrom
fix/issue-76-single-quoted-author-values

Conversation

@beanbean9339

Copy link
Copy Markdown
Collaborator

Summary

  • Strip matching single or double quotes from YAML author fields in CITATION.cff.
  • Add regression coverage for single-quoted given name, family name, and ORCID values.

Closes #76

Validation: direct parser check and JavaScript syntax checks pass. Full test suite not run locally (workspace Node.js is v16; CI is configured for Node.js 24).

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@beanbean9339
beanbean9339 requested review from NetZissou and a balanced review from Copilot October 12, 2026 15:21

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟢 Approval recommended

The focused implementation correctly covers both author parsing paths with regression tests.

0 open findings

What changed in this PR

Updates CFF author parsing to remove matching single- or double-quote wrappers.

Changes:

  • Reuses stripWrappingQuotes for author fields.
  • Adds regression coverage for single-quoted names and ORCID values.
File Description
src/​services/​githubImporter.js Normalizes quoted author values.
tests/​services/​githubImporter.test.js Tests single-quoted author parsing.

🧠 Review effort: Balanced


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@NetZissou NetZissou 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.

Looks good! Thumbs up!

@beanbean9339
beanbean9339 merged commit fece962 into main Oct 12, 2026
2 checks passed
@beanbean9339
beanbean9339 deleted the fix/issue-76-single-quoted-author-values branch October 12, 2026 17:25
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.

YAML Field Apostrophe Quotes Parsing Issue

3 participants