danfragoso / thdwb

🌭 The hotdog web browser and browser engine 🌭
MIT License
1.12k stars 58 forks source link

Make mayo's mapSizeValue function more resilient #26

Closed Thanson16 closed 3 years ago

Thanson16 commented 3 years ago

Previous implementation would crash the browser if the sizeValue had no attached unit. Discovered by attempting to browse to https://github.com.

This fix makes the parser more flexible by using regex to extract the value.

https://github.com now loads without the browser crashing.