Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow any character except / in port or board name #5473

Merged
merged 1 commit into from
Oct 25, 2021
Merged

Allow any character except / in port or board name #5473

merged 1 commit into from
Oct 25, 2021

Conversation

microdev1
Copy link
Collaborator

The regex [\w-]+ matches [A-Za-z0-9_] and/or hyphen -.

@microdev1 microdev1 linked an issue Oct 17, 2021 that may be closed by this pull request
@microdev1 microdev1 requested a review from jepler October 17, 2021 03:16
Copy link
Member

@jepler jepler left a comment

Choose a reason for hiding this comment

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

There are "." characters too, such as

adafruit_magtag_2.9_grayscale
espressif_kaluga_1.3

The character class [^/] will match any character except "/", so there's no need to worry about a future board which chooses to embed a new character we didn't explicitly anticipate.

@microdev1 microdev1 changed the title Allow hyphen in port names Allow hyphen in port names and period in board names Oct 22, 2021
@microdev1 microdev1 requested a review from jepler October 22, 2021 14:14
@microdev1 microdev1 marked this pull request as draft October 22, 2021 14:31
@microdev1 microdev1 marked this pull request as ready for review October 22, 2021 14:38
@microdev1
Copy link
Collaborator Author

Good catch @jepler, I have made the suggested change.

@microdev1 microdev1 changed the title Allow hyphen in port names and period in board names Allow any character except / in port or board name Oct 22, 2021
Copy link
Member

@jepler jepler left a comment

Choose a reason for hiding this comment

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

Thank you ! sorry for being slow to re-review.

@jepler jepler merged commit 9dea5ec into adafruit:main Oct 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ci_set_matrix script is not working properly
2 participants