This line of code var versionMatch = ua.match(/version\/([\.\d]+)/i); from ocLazyLoad.loaders.common.js crashes in PhantomJS because the regular expresssion does not match anything.
Isn't it impossible to test the feature instead of doing UA sniffing that will fail inevitably in any future unknown browser?
This line of code
var versionMatch = ua.match(/version\/([\.\d]+)/i);
from ocLazyLoad.loaders.common.js crashes in PhantomJS because the regular expresssion does not match anything.Isn't it impossible to test the feature instead of doing UA sniffing that will fail inevitably in any future unknown browser?