Skip to content

Clarify Roman numeral regex case sensitivity question#3

Merged
troyeguo merged 1 commit into
devfrom
copilot/sub-pr-2
Nov 29, 2025
Merged

Clarify Roman numeral regex case sensitivity question#3
troyeguo merged 1 commit into
devfrom
copilot/sub-pr-2

Conversation

Copilot AI commented Nov 29, 2025

Copy link
Copy Markdown

Addressed reviewer question about case sensitivity in the footnote detection regex pattern.

Both the current pattern (^[ivxlcdm]+$/i) and the suggested stricter pattern use the /i flag, making them case-insensitive—they match both uppercase (IV) and lowercase (iv) Roman numerals identically.

The actual difference is structural validation:

  • Current: matches any combination of Roman numeral letters (false positives: "mid", "mix", "dim")
  • Suggested: validates proper Roman numeral sequences only

No code changes made—awaiting direction on whether stricter validation is desired for the footnote detection use case.


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI mentioned this pull request Nov 29, 2025
@troyeguo troyeguo marked this pull request as ready for review November 29, 2025 07:36
Copilot AI changed the title [WIP] Fix capitalization in update to version 2.2.3 Clarify Roman numeral regex case sensitivity question Nov 29, 2025
Copilot AI requested a review from troyeguo November 29, 2025 07:37
@troyeguo troyeguo merged commit a29b191 into dev Nov 29, 2025
1 check passed
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.

2 participants