summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2021-11-16 16:04:52 +0100
committerChristian Grothoff <christian@grothoff.org>2021-11-16 16:04:52 +0100
commitfca62a91d78ba412911232006db5b237437557c2 (patch)
treea3b14f66637653a7777ae357629be9a9634fd0fc /src
parent037cb52b8f14281267c621ba5c236f06350d3c25 (diff)
downloadanastasis-gtk-fca62a91d78ba412911232006db5b237437557c2.tar.gz
anastasis-gtk-fca62a91d78ba412911232006db5b237437557c2.tar.bz2
anastasis-gtk-fca62a91d78ba412911232006db5b237437557c2.zip
require + prefix for phone number, add message (#7081)
Diffstat (limited to 'src')
-rw-r--r--src/anastasis/anastasis-gtk_handle-method-sms.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/anastasis/anastasis-gtk_handle-method-sms.c b/src/anastasis/anastasis-gtk_handle-method-sms.c
index 026a5fc..74ffa08 100644
--- a/src/anastasis/anastasis-gtk_handle-method-sms.c
+++ b/src/anastasis/anastasis-gtk_handle-method-sms.c
@@ -1,6 +1,6 @@
/*
This file is part of anastasis-gtk.
- Copyright (C) 2020 Anastasis SARL
+ Copyright (C) 2020-2021 Anastasis SARL
Anastasis is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published
@@ -193,7 +193,7 @@ anastasis_gtk_b_sms_dialog_phonenumber_entry_changed_cb (GtkEntry *entry,
const char *qs;
regex_t regex;
int regex_result;
- const char *regexp = "^\\+?[0-9]+$";
+ const char *regexp = "^\\+[0-9]+$";
regex_result = regcomp (&regex,
regexp,