-
Notifications
You must be signed in to change notification settings - Fork 488
Wrong record test fixture for clents/library.yml #7633
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
The version must be declared as a string |
Problem 3 If you use the Library parser, the result is client type "library"
Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 10.0; Win64; x64; Anonymisiert durch AlMiSoft Browser-Maulkorb 39663422; Trident/7.0; .NET4.0C; .NET4.0E; .NET CLR 2.0.50727; .NET CLR 3.0.30729; .NET CLR 3.5.30729; Tablet PC 2.0; Browzar) If we use full parsing, we get the application, but if we use the Browser Parser separately, we get the browser. |
@sanchezzzhak coincidence or not, I wanted to talk about this a few days ago. I use Same here: device-detector/Tests/Parser/fixtures/oss.yml Lines 2250 to 2257 in c9952fc
What should I do with What I see, is empty strings should have double quotes, otherwise without double quotes (except versions). |
wrap quotes only for numbers \d+ and float (\d.\d) (if we expect to get the correct result in tests.) platform: x64
|
https://github.com/matomo-org/device-detector/blob/c9952fc4d31dd249d2bf7dc88ca9963c7a2739b7/Tests/Parser/Client/fixtures/library.yml#L621C1-L643C18
In some parsers, this is perceived as a float/number and not as a string
full fix
The text was updated successfully, but these errors were encountered: