Skip to content

fix(copyright): detect year ranges ending with 'NOW' - #5281

Open
mmustafasenoglu wants to merge 1 commit into
aboutcode-org:developfrom
mmustafasenoglu:develop
Open

fix(copyright): detect year ranges ending with 'NOW'#5281
mmustafasenoglu wants to merge 1 commit into
aboutcode-org:developfrom
mmustafasenoglu:develop

Conversation

@mmustafasenoglu

Copy link
Copy Markdown

Fixes #5220

Summary

Added support for copyright year ranges ending with 'NOW' (case-insensitive) such as '2013-NOW', '2013-Now', '2013-now', similar to existing 'Present' support.

Changes

  • Added _YEAR_DASH_NOW pattern for year ranges ending with NOW
  • Fixed _YEAR_DASH_PRESENT grouping with non-capturing group
  • Added pattern to PATTERNS list

Testing

  • Verified detection of: '2013-NOW', '2013-Now', '2013-now', '2013-NOW', '2020-NOW Company', '1999-present Company'
  • Verified 'Present' still works correctly

Fixes aboutcode-org#5220

Added support for copyright year ranges ending with 'NOW' (case-insensitive)
such as '2013-NOW', '2013-Now', '2013-now', similar to existing 'Present'
support. Also fixed grouping in _YEAR_DASH_PRESENT pattern.

Changes:
- Added _YEAR_DASH_NOW pattern for year ranges ending with NOW
- Fixed _YEAR_DASH_PRESENT grouping with non-capturing group
- Added pattern to PATTERNS list
Copilot AI lite review requested due to automatic review settings August 24, 2026 22:13

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.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

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.

Copyright statement with a year range ending in the word "NOW" not detected at all

2 participants