3 ms·
I think you’ll find all kinds of ‘libraries’ for doing that, especially in small embedded devices with a web front-end. I also fear there’s software that corre
by Someone 5y ago
I think you’ll find all kinds of ‘libraries’ for doing that, especially in small embedded devices with a web front-end.
I also fear there’s software that correctly extracts all the digits of the version in the user agent, but then compares it as a string with a given version. That would get you
“100” < “99”
- cpeterso 5y agoHere's a real example of that bug: Slack's message buttons (such as "Add reaction" or "Reply in thread") stopped working for Firefox versions >= 100 and <= 519. They mysteriously started working again for versions >= 520. The version string "100" compared as smaller than "52" in Slack's code, which activated some kind of webcompat workaround intended for Firefox versions < 52 that breaks on more recent Firefox versions. https://github.com/webcompat/web-bugs/issues/67866 https://github.com/webcompat/web-bugs/issues/67866