From 236ab9a3430f17ae212c43d863b4cf456d522fd7 Mon Sep 17 00:00:00 2001 From: Anjandev Momi Date: Fri, 4 Dec 2020 08:06:33 +0000 Subject: [PATCH] Do not display text only numbers as options when dialing or composing new texts Signed-off-by: Anjandev Momi Signed-off-by: Reed Wade Signed-off-by: Maarten van Gompel --- scripts/modem/sxmo_modemdial.sh | 2 +- scripts/modem/sxmo_modemtext.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/modem/sxmo_modemdial.sh b/scripts/modem/sxmo_modemdial.sh index 8f5f0b3..f80ad3e 100755 --- a/scripts/modem/sxmo_modemdial.sh +++ b/scripts/modem/sxmo_modemdial.sh @@ -16,7 +16,7 @@ modem_n() { } dialmenu() { - CONTACTS="$(sxmo_contacts.sh)" + CONTACTS="$(sxmo_contacts.sh | grep -E "^\+?[0-9]+:")" NUMBER="$( printf %b "Close Menu\nMore contacts\n$CONTACTS" | grep . | diff --git a/scripts/modem/sxmo_modemtext.sh b/scripts/modem/sxmo_modemtext.sh index 8fbe460..02e51e4 100755 --- a/scripts/modem/sxmo_modemtext.sh +++ b/scripts/modem/sxmo_modemtext.sh @@ -38,7 +38,7 @@ choosenumbermenu() { # Prompt for number NUMBER="$( - printf %b "\nCancel\nMore contacts\n$(sxmo_contacts.sh)" | + printf %b "\nCancel\nMore contacts\n$(sxmo_contacts.sh | grep -E "^\+?[0-9]+:")" | awk NF | menu sxmo_dmenu_with_kb.sh -p "Number" -fn "Terminus-20" -l 10 -c -i | cut -d: -f1 |