[ekiga/ds-gtk-application] GmEntry: Fixed more regexes.
- From: Damien Sandras <dsandras src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ekiga/ds-gtk-application] GmEntry: Fixed more regexes.
- Date: Sun, 21 Dec 2014 16:59:01 +0000 (UTC)
commit 6ab542347a80206536d980d0f736d542e41edfa7
Author: Damien Sandras <dsandras seconix com>
Date: Sun Dec 21 15:48:50 2014 +0100
GmEntry: Fixed more regexes.
lib/gui/gm-entry.h | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/lib/gui/gm-entry.h b/lib/gui/gm-entry.h
index 87a61eb..143a015 100644
--- a/lib/gui/gm-entry.h
+++ b/lib/gui/gm-entry.h
@@ -52,8 +52,8 @@ G_BEGIN_DECLS
#define EKIGA_URI_PART "(ekiga.net|ekiga.im)"
#define BASIC_URI_REGEX "^" URI_SCHEME BASIC_URI_PART "@" BASIC_URI_PART "$"
#define EKIGA_URI_REGEX "^" SIP_URI_SCHEME BASIC_URI_PART "@" EKIGA_URI_PART "$"
-#define PHONE_NUMBER_REGEX "\\+?[0-9]+"
-#define NUMBER_REGEX "\\[0-9]+"
+#define PHONE_NUMBER_REGEX "^\\+?[0-9]+$"
+#define NUMBER_REGEX "^[0-9]+$"
typedef struct _GmEntry GmEntry;
typedef struct _GmEntryPrivate GmEntryPrivate;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]