Skip to content

Conversation

@SameeraPriyathamTadikonda
Copy link
Contributor

…eader

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the copyright header validation logic to support XQuery-style comment syntax by adding support for (: and :) comment delimiters alongside existing HTML and C-style comment patterns.

Changes:

  • Added XQuery trailing comment terminator :) to the pattern matching
  • Added XQuery leading comment opener (: to the pattern matching

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

for line in lines[:20]:
# Remove common leading comment characters and whitespace (including HTML <!-- starts)
cleaned_line = re.sub(r'^[\s\*#\/]*(?:<!--)?', '', line).strip()
# Remove common leading comment characters and whitespace (including HTML <!-- starts and XQuery (: )
Copy link

Copilot AI Jan 15, 2026

Choose a reason for hiding this comment

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

Missing closing parenthesis in comment. Should be 'XQuery (: )'.

Suggested change
# Remove common leading comment characters and whitespace (including HTML <!-- starts and XQuery (: )
# Remove common leading comment characters and whitespace (including HTML <!-- starts and XQuery comments starting with '(:' and ending with ':)')

Copilot uses AI. Check for mistakes.
@SameeraPriyathamTadikonda SameeraPriyathamTadikonda merged commit bfe9e34 into main Jan 15, 2026
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.

3 participants