[ekiga/ds-gtk-application] GmEntry: Fixed regexes.
- From: Damien Sandras <dsandras src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ekiga/ds-gtk-application] GmEntry: Fixed regexes.
- Date: Sun, 21 Dec 2014 16:58:56 +0000 (UTC)
commit 30b7e65b4984cd37891e39991e452315d5109f97
Author: Damien Sandras <dsandras seconix com>
Date: Sun Dec 21 14:58:43 2014 +0100
GmEntry: Fixed 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 77593cf..87a61eb 100644
--- a/lib/gui/gm-entry.h
+++ b/lib/gui/gm-entry.h
@@ -47,9 +47,9 @@
G_BEGIN_DECLS
#define URI_SCHEME "([A-Za-z]+:)?"
-#define SIP_URI_SCHEME "([(sip|sips)]+:)?"
+#define SIP_URI_SCHEME "((sip|sips)+:)?"
#define BASIC_URI_PART "[A-Za-z0-9_\\-\\.]+"
-#define EKIGA_URI_PART "[(ekiga.net|ekiga.im)]"
+#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]+"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]