WordPress / browsehappy

102 stars 37 forks source link

Firefox version renders as "24." instead of "24" #11

Closed Krinkle closed 8 years ago

Krinkle commented 11 years ago

Somehow the parsing logic in browsehappy's PHP code seems to add a dot if the input from Wikipedia is a round number (the template changed from 23.0 to 24).

Fixed it on Wikipedia for now, but in general this should be fixed on this side.

coffee2code commented 8 years ago

Thanks for the report and fixing the issue on the Wikipedia side of things at the time!

I've been unable to reproduce the issue with the current codebase when simulating a latest release version number expressed as a whole number (as provided in the before of the change performed in the above Wikipedia link). Looks not to be an issue any longer.