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

targets: standardise target type name normalisation #1432

Merged
merged 1 commit into from Jul 6, 2022

Conversation

flit
Copy link
Member

@flit flit commented Jul 6, 2022

Fix for not being able to use a target type from a CMSIS Pack where the name includes a dash. Replace inline normalisation with a single normalise_target_type_name() implementation.

Normalised target type names contain only ASCII alphanumeric, all lowercase, characters plus underscore. Runs of more than one underscore are not allowed.

A unit test of the normalise_target_type_name() function is added.

This change fixes issues using DFP targets with dashes or other
punctuation in the name.
@flit flit merged commit 9da9ec0 into pyocd:main Jul 6, 2022
@flit flit deleted the bugfix/target_type_normalisation branch July 6, 2022 18:56
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.

None yet

1 participant