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

clean_string re.sub() misses removing hyphen from strings #601

Open
TfedUD opened this issue Mar 20, 2024 · 0 comments
Open

clean_string re.sub() misses removing hyphen from strings #601

TfedUD opened this issue Mar 20, 2024 · 0 comments
Assignees

Comments

@TfedUD
Copy link

TfedUD commented Mar 20, 2024

image
in honeybee.typing clean_string
the hyphen is not being removed when running clean_string
changing re.sub(r'[^.A-Za-z0-9_-]', '', value) to re.sub(r'[^.A-Za-z0-9_(-)]', '', value) removes the hyphen from the string.
image

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

No branches or pull requests

2 participants