Skip to content
Commit 6566de50 authored by Nicolas Fella's avatar Nicolas Fella
Browse files

[contactmapper] Better handle number parsing errors

When the number parsing fails, e.g. because of a syntax error or because
no country has been specified for an non-international number
normalizeNumber returns an empty string.

That empty string will be then used as a key in the map. If multiple
numbers are invalid then contacts are mixed up.

Instead discard invalid numbers before processing. They won't get
matched to a contact, but they will be displayed as-is.

Fixes #28
parent fa1d0ee4
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment