[ekiga/ds-gtk-application] GmEntry: Added Ekiga.net/im regexes.
- From: Damien Sandras <dsandras src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ekiga/ds-gtk-application] GmEntry: Added Ekiga.net/im regexes.
- Date: Sun, 21 Dec 2014 16:58:46 +0000 (UTC)
commit fb50090c4c1136e108546cef2ec708b27931966f
Author: Damien Sandras <dsandras seconix com>
Date: Sun Dec 21 12:31:00 2014 +0100
GmEntry: Added Ekiga.net/im regexes.
lib/gui/gm-entry.h | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/lib/gui/gm-entry.h b/lib/gui/gm-entry.h
index 1dd8330..77593cf 100644
--- a/lib/gui/gm-entry.h
+++ b/lib/gui/gm-entry.h
@@ -47,8 +47,11 @@
G_BEGIN_DECLS
#define URI_SCHEME "([A-Za-z]+:)?"
+#define SIP_URI_SCHEME "([(sip|sips)]+:)?"
#define BASIC_URI_PART "[A-Za-z0-9_\\-\\.]+"
+#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]+"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]