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

Fix RegEx to handle negative values and Ohms without prefix #530

Merged
merged 8 commits into from
Feb 24, 2024

Conversation

frank-f
Copy link
Contributor

@frank-f frank-f commented Feb 23, 2024

This is a minor tweak for #526, specifically for #526 (comment)

I noticed, that (LCSC) attributes of ranges with negative values were still saved as text. That was due to the minus character, that was missing from the regular expression in splitIntoValueAndUnit().

@frank-f frank-f changed the title Fix RegEx to include negative values Fix parameter RegEx to handle negative values Feb 23, 2024
@frank-f
Copy link
Contributor Author

frank-f commented Feb 23, 2024

I just noticed, that a parameter value of 120Ω was also not correctly parsed.

@frank-f frank-f changed the title Fix parameter RegEx to handle negative values Fix RegEx to handle negative values and Ohms without prefix Feb 24, 2024
@frank-f
Copy link
Contributor Author

frank-f commented Feb 24, 2024

I'll add more tweaks while polishing my database, but won't explain each one. Just ask here, if you have questions.

@jbtronics
Copy link
Member

Looks great. Thank you.

@jbtronics jbtronics merged commit e8bc93f into Part-DB:master Feb 24, 2024
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

2 participants