[ekiga] Use a simpler regex for H323 URL in dialpad
- From: Eugen Dedu <ededu src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ekiga] Use a simpler regex for H323 URL in dialpad
- Date: Mon, 9 Feb 2015 14:06:13 +0000 (UTC)
commit 430c9d2e4698cb1e560453dfc3b2626ca7f9f3bd
Author: Eugen Dedu <eugen dedu univ-fcomte fr>
Date: Mon Feb 9 15:05:34 2015 +0100
Use a simpler regex for H323 URL in dialpad
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 7c8c32a..9c898d3 100644
--- a/lib/gui/gm-entry.h
+++ b/lib/gui/gm-entry.h
@@ -51,8 +51,8 @@ G_BEGIN_DECLS
#define BASIC_URI_PART "[A-Za-z0-9_\\-\\.]+"
#define EKIGA_URI_PART "(ekiga.net|ekiga.im)"
#define BASIC_SIP_URI_REGEX "^" SIP_URI_SCHEME BASIC_URI_PART "@" BASIC_URI_PART "$"
-// h323 allows to call with user or user host
-#define BASIC_H323_URI_REGEX "^" H323_URI_SCHEME BASIC_URI_PART "(@" BASIC_URI_PART ")?$"
+// h323 uri has several forms: with or without user, with or without host depending if registered etc., so
let's do it simple
+#define BASIC_H323_URI_REGEX "^" H323_URI_SCHEME BASIC_URI_PART
#define BASIC_URI_REGEX BASIC_SIP_URI_REGEX "|" BASIC_H323_URI_REGEX
#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]