-
Notifications
You must be signed in to change notification settings - Fork 145
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
PhantomJS is not detected correct #28
Comments
Thanks for reporting it! Just not sure if we should detect it as browser or as |
I would argue for browser as it is the program that is running and not the physical device. Also it is not Safari that PhantomJS uses but rather QTWebkit 1 so features do not map 1:1 with Safari. On Sun, Apr 7, 2013 at 4:05 PM, Arnout Kazemier notifications@github.com
|
I've looked a little bit more into it and the following works: // lib/regexps.js
parser[0] = new RegExp("(PhantomJS)/(\\d+)\\.(\\d+).(\\d+)");
parser[1] = "PhantomJS";
parser[2] = 0;
parser[3] = 0;
parser[4] = 0; But only if it's inserted before the Safari matcher 126. |
Ill make sure its added in the next release On Sun, Apr 7, 2013 at 5:59 PM, Friedel Ziegelmayer
|
I really would like to start using this in karma. If you tell me at which location you want the new regexp I can make a PR out of it. |
@dignifiedquire i'll add it today together with support for the IE string. I'll release it in 2~ hours |
@3rd-Eden Thanks! That was quick :) |
Released as 2.0.4 |
Thanks a lot |
Given the following user agent string:
This is the result
But it should be
The text was updated successfully, but these errors were encountered: