Skip to content

Fix overly permissive regex range#682

Merged
larrybradley merged 1 commit into
astropy:mainfrom
larrybradley:fix-regex
Jun 11, 2026
Merged

Fix overly permissive regex range#682
larrybradley merged 1 commit into
astropy:mainfrom
larrybradley:fix-regex

Conversation

@larrybradley

Copy link
Copy Markdown
Member

The regex intent was the match the +, -, and : characters (for coordinate strings). This PR escapes the hyphen so the regex is not interpreted as a range.

This fixes CodeQL code scan alerts:

@larrybradley larrybradley added this to the 0.12 milestone Jun 11, 2026
@larrybradley larrybradley merged commit 6c87847 into astropy:main Jun 11, 2026
29 checks passed
@larrybradley larrybradley deleted the fix-regex branch June 11, 2026 17:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant