rust-num / num-traits

Numeric traits for generic mathematics in Rust
Apache License 2.0
731 stars 135 forks source link

Fix num parsing for invalid multi-byte sign chars #126

Closed HeroicKatora closed 5 years ago

HeroicKatora commented 5 years ago

Ensure that splitting the potential sign character from the remainder respects UTF8 boundaries. This lets invalid characters fail correctly with an error, instead of panicking.

Closes: #125

cuviper commented 5 years ago

Thanks!

bors r+

bors[bot] commented 5 years ago

Build succeeded