Comments (2)
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.
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:
- speed
- doesn't add npm dependencies
- the native case functions already have unicode support
- I'd expect the native functions to "get it right" on more languages than the unicode character ranges
- 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)
- An in-range update of nearley is breaking the build 🚨 HOT 2
- An in-range update of eslint is breaking the build 🚨 HOT 1
- An in-range update of eslint-plugin-haraka is breaking the build 🚨 HOT 1
- An in-range update of eslint-plugin-haraka is breaking the build 🚨 HOT 1
- An in-range update of eslint is breaking the build 🚨 HOT 1
- document what happens when parsing fails
- Version 10 of node.js has been released
- An in-range update of eslint is breaking the build 🚨 HOT 2
- Can not parse address like "[email protected] <[email protected]>" HOT 2
- Handle escaped quotes HOT 1
- An in-range update of eslint is breaking the build 🚨 HOT 3
- An in-range update of eslint-plugin-haraka is breaking the build 🚨 HOT 2
- current repo URL is 404 HOT 1
- Parsing failed with HTAB? HOT 2
- An in-range update of eslint-plugin-haraka is breaking the build 🚨 HOT 2
- Text between square brackets generates a "No Results" error HOT 1
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 node-address-rfc2822.