IvanMathy / Boop

A scriptable scratchpad for developers. In slow yet steady progress.
https://boop.okat.best
MIT License
3.77k stars 346 forks source link

Add support for 0b notation #349

Open eldonwilliams opened 2 years ago

eldonwilliams commented 2 years ago

Currently, if a binary string formatted with 0b is inputted, it will resolve to zero since it only cares about the first numerical character in the line. This change will detect if 0b is at the head and if so, will cut it off.

This is the only place I noticed this lacking, if this needs to be added anywhere else please feel free to append to this.

Thank you, Eldon.

sonarcloud[bot] commented 2 years ago

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication