GithubHelp home page GithubHelp logo

Question on new C# port about ua-parser HOT 3 CLOSED

tobie avatar tobie commented on May 28, 2024
Question on new C# port

from ua-parser.

Comments (3)

galmeida avatar galmeida commented on May 28, 2024

@enemaerke

  1. 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
  2. look #111 and #110

from ua-parser.

tobie avatar tobie commented on May 28, 2024

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.

tobie avatar tobie commented on May 28, 2024

@enemaerke FYI, I fixed the regexp problem, so you no longer have to special case your implementation.

from ua-parser.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.