Comments (3)
- Java port is broken, the guy who first wrote the c# implementation did almost a literal translation from java, so it's broken too, I've fixed the java code in my local repo based on the php port. But @tobie said "We're moving away from the is_mobile booleans.", so I didn't mind to PR it. see #112
- look #111 and #110
from ua-parser.
1: I've included unit tests of the yaml-defined testcases under test_resources
but I get one failing test on matching the useragent 'Mozilla/5.0 (BlackBerry;
U; BlackBerry 9320; en-GB) AppleWebKit/534.11+ (KHTML, like Gecko)
Version/7.1.0.398 Mobile Safari/534.11+' as a mobile device. From running the
java tests I see they have the same issue (seems the issue, at least for me
and for the java version, is that the list of mobile OS'es are matched exactly
against the family and BlackBerry 9320 != BlackBerry so the device is not
marked as mobile). Is this a known issue or is it just c#/java that suffer
from this?
We should remove this data from the test files. Tracking in #114.
2: I've added some Apache2 copyright and my name to the readme.
Please keep comments related to the pull request in the relevant issue. If this is a fork from the initial C# submission, please make sure the original author is credited.
I'd like to
support this going forward but how can I contribute and stay in the loop for
updates/fixes across the ported platforms?
Not sure what you mean. GitHub notifications should allow you to follow along. Else the regexes file should update itself.
3: As far as I can tell there is no Travis-CI support for C# which is too bad
since I'd like to integrate into some CI system. Any requirements/thoughts/
ideas on this from more experienced githubbers?
Nope. Sorry. Also, we'd need to split each language into a different project to allow for multiple language CI.
4: I think @tobie has touched on this but c# is really not all that happy with
_ (illegal escape) so I am currently just working around that and can remove
this if the regex'es are adjusted (not really a question come to think of it,
more of a reminder)
Pending PR in #111.
from ua-parser.
@enemaerke FYI, I fixed the regexp problem, so you no longer have to special case your implementation.
from ua-parser.
Related Issues (20)
- isMobile alternative HOT 2
- Desktop browsers return as Other. HOT 11
- Wrong detection of Amazon Silk HOT 3
- Publish the Java Maven artifact in the maven central repository HOT 3
- ua_parser:pig
- Outlook UA strings
- Linux Mint 17.2 is reported as linux mint 17 HOT 1
- Edge Browser not detected HOT 4
- Device family is not getting parsed properly HOT 2
- Node js upgradation
- uap-lua HOT 1
- Case sensitive regex match in C# uaparser HOT 1
- used in hive udf gives IOException HOT 1
- unit test error HOT 1
- Convert the .net project to a portable project so i can target more platforms
- Tests fail in Java Directory with the lastest regexes.yaml
- Mobile BingBot detected as iPhone HOT 1
- Regex expressions for web application scanners HOT 1
- ua_dict missing data raises: exceptions.TypeError: parse_device() takes exactly 3 arguments (1 given)
- regex place holder is not working in regex_yaml HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ua-parser.