Giter Club home page Giter Club logo

Comments (2)

Dexus avatar Dexus commented on June 8, 2024

Hello Vlad,

sure any PR is welcome. We use this plugin in haraka, so it's still active.

Regards,
Josef

Am 21.09.2016 um 12:50 schrieb Vlad Holubiev [email protected]:

Hey @haraka

Thanks for the module!

By the way I found a little issue with non-latin names.

I suppose the culprit is here - https://github.com/haraka/node-address-rfc2822/blob/master/index.js#L258

When it tries to parse non-latin names it makes them all lowercase, because \b doesn't match begging non-ASCII names.

F.e. try to parse "Имя Фамилия" [email protected]

Would you like to accept a PR? I could make it immediately, but not sure if project is still alive so it will be merged at sometime.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

from node-address-rfc2822.

msimerson avatar msimerson commented on June 8, 2024

Hi again @vladgolubev . Thanks for updating. I looked into is-upper-case, which is a thin wrapper around upper-case, which in turn is still using a regexp, but is doing so using unicode ranges. While that's reasonable, I think there might be a better way.

Using native toLowerCase() and toUpperCase() has potential advantages:

  1. speed
  2. doesn't add npm dependencies
  3. the native case functions already have unicode support
  4. I'd expect the native functions to "get it right" on more languages than the unicode character ranges
  5. the code inside that function uses toLowerCase and toUpperCase, so it's unlikely there will ever be mismatches between what is detected and what is transformed.

Your thoughts?

from node-address-rfc2822.

Related Issues (17)

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.