Updated handling of '+' in phone numbers, it is now never stripped but expected: all numbers should be full international phone numbers (including in contacts.tsv).

Ensure contacts from modem and contacts lists are all fully qualified phone numbers (starting with + and carrying a country prefix). This effectively filters out older/incompatible entries.
This commit is contained in:
Maarten van Gompel 2020-08-02 12:01:25 +02:00 committed by Miles Alan
parent 7f2f50c11a
commit 565eae8835
4 changed files with 7 additions and 5 deletions

View file

@ -103,7 +103,7 @@ checkfornewtexts() {
NUM="$(
echo "$TEXTDATA" |
grep sms.content.number |
sed -E 's/^sms\.content\.number\s+:\s+[+]?//'
sed -E 's/^sms\.content\.number\s+:\s+//'
)"
TIME="$(echo "$TEXTDATA" | grep sms.properties.timestamp | sed -E 's/^sms\.properties\.timestamp\s+:\s+//')"