Closed orestisioakeimidis closed 2 years ago
The parse method of the agent is giving the wrong value for the patch property when using the following user agent string.
parse
patch
User agent
Mozilla/5.0 (iPhone; CPU iPhone OS 12_0_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) FxiOS/7.0.4 Mobile/16A404 Safari/605.1.15
Result
Agent { family: 'Firefox iOS', major: '7', minor: '0', patch: '.4', <-- source: 'Mozilla/5.0 (iPhone; CPU iPhone OS 12_0_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) FxiOS/7.0.4 Mobile/16A404 Safari/605.1.15' }
Expected
Agent { family: 'Firefox iOS', major: '7', minor: '0', patch: '4', <-- source: 'Mozilla/5.0 (iPhone; CPU iPhone OS 12_0_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) FxiOS/7.0.4 Mobile/16A404 Safari/605.1.15' }
The
parse
method of the agent is giving the wrong value for thepatch
property when using the following user agent string.User agent
Result
Expected