Currently, it detects the major version and adds suitable class to html
(like "ios6").
After your changes, it'll detect full version and add a class like "ios6_1".

Isn't major version enough for you? Do you really need full version?

We can detect both major and full versions for backward compability.
"device.osVersion" will be major version (like "6") as now, and another
variable like "device.osVersionFull" may be the full version (like "6.1").
Classes for both versions (major and full) must be added to html: "js touch
ios ios6 ios6_1 iphone5".


On Fri, Jul 12, 2013 at 5:18 PM, Adrian Maurer <notifications@github.com>wrote:

> In detectizr.js:
>
> > @@ -253,17 +259,25 @@
> >          if (options.detectOS) {
> >              if (device.model !== '') {
> >                  if (device.model === 'ipad' || device.model === 'iphone' || device.model === 'ipod') {
> > -                    device.osVersion = (that.test(/os\s(\d+)_/) ? RegExp.$1 : '');
> > +                    device.osVersion = (that.test(/os ([^\s]+)/) ? RegExp.$1.replace(/_/g,'.') : '');
>
> Any ideas on how to make this backwards compatible?
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/barisaydinoglu/Detectizr/pull/5/files#r5165533>
> .
>