ladybug-tools / honeybee-core

:honeybee: honeybee core library
https://www.ladybug.tools/honeybee-core/docs/
GNU Affero General Public License v3.0
14 stars 14 forks source link

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

Open TfedUD opened 6 months ago

TfedUD commented 6 months ago

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