DeviceDetector.NET
DeviceDetector.NET copied to clipboard
Updating regexes from the PHP project now produces runtime errors
The latest yml files from the PHP project now include a versions property in the oss.yml file.
` #webOS
regex: '(?:Web0S; .*WEBOS|webOS|web0S|Palm webOS|hpwOS)(?:[/]?(\d+[.\d]+))?' name: 'webOS' version: '$1' versions: regex: 'WEBOS(\d+[.\d]+)' version: '$1' regex: 'Web0S; Linux/SmartTV.+Chrome/68' version: '5' regex: 'Web0S; Linux/SmartTV.+Chrome/53' ` This causes runtime errors stating that Class.Os does not contain a "versions" property. To get around this, I simply added...
[YamlMember(Alias = "versions")] public Os[] Versions { get; set; }
And the runtime error goes away, though, this is definitely not the correct fix.
https://github.com/matomo-org/device-detector/releases/tag/5.0.0
Hello @echodreamz I am interested on how can I use the regexes from PHP project, the mobiles.yml
file.
I am Angular developer so my knowledge here is limited.
Is there an easy way to include that file if you are importing the project using Nuget Packages?
Hi @echodreamz , @sanchezzzhak , @fpl1976 ,
I just release new version v6.1.0, check this version.
Thanks 👍