[tomboy] Revert "Fix handling of ] } ) in links"
- From: Aaron Borden <adborden src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tomboy] Revert "Fix handling of ] } ) in links"
- Date: Mon, 13 Jun 2011 18:15:19 +0000 (UTC)
commit c655a53ac139e5581b30ed706404c8653a8aa80e
Author: Aaron Borden <adborden live com>
Date: Mon Jun 13 11:10:11 2011 -0700
Revert "Fix handling of ] } ) in links"
This reverts commit bde1d9a547936b40d40fa627acf36f5b3b3dbd01. Patch introduces
a regression. Since it is related to linking, we'll consider it severe enough
that we should revert. There is a fix in bugzilla, once reviewed we can reapply
the patches.
Tomboy/Watchers.cs | 42 +-----------------------------------------
1 files changed, 1 insertions(+), 41 deletions(-)
---
diff --git a/Tomboy/Watchers.cs b/Tomboy/Watchers.cs
index 879725e..105205e 100644
--- a/Tomboy/Watchers.cs
+++ b/Tomboy/Watchers.cs
@@ -374,47 +374,7 @@ namespace Tomboy
Gtk.TextMark click_mark;
const string URL_REGEX =
- //@"((\b((news|http|https|ftp|file|irc)://|mailto:|(www|ftp)\.|\S* \S*\ )|(?<=^|\s)/\S+/|(?<=^|\s)~/\S+)\S*\b/?)";
- @"("+
- @"(("+
- @"(?<=(?<starter>("+ // preceded by a starter
- @"(?<starterA>(\())"+ // opening parenthesis closed by )
- @"|(?<starterB>(\[))"+ // or opening bracket closed by ]
- @"|(?<starterC>(\{))"+ // or opening thing closed by }
- @")))"+
- @"|\b"+ // or at beginning of a word \b
-// @")"+
-// @"("+
- @"("+
- @"(news|http|https|ftp|file|irc)://"+ // http:// ...
- @"|mailto:"+ // or mailto...
- @"|(www|ftp)\."+ // or www...
- @"|\S* \S*\ "+ // or email adress
- @")"+
- @")"+
- @"|("+
- @"(?<=(?<starter>("+ // preceded by a starter
- @"(?<starterA>(\())"+ // opening parenthesis closed by )
- @"|(?<starterB>(\[))"+ // or opening bracket closed by ]
- @"|(?<starterC>(\{))"+ // or opening thing closed by }
- @")))"+
- @"|(?<=^|\s)"+
- @"("+
- @"(/\S+/)"+ // or starting with '/'
- @"|(~/\S+)"+ // or starting with '~/'
- @")"+
- @"))"+
- @"(?(starter)"+ //
- @"(\S(?!("+ // if starter detected : forbid ender
- //ignore this comment (for syntax) ([{
- @"(?(starterA)\)|"+ // closing parenthesis
- @"(?(starterB)\]|"+ // closing bracket
- @"(?(starterC)\})))"+ // closing thing
- @")))*\S?"+
- @"|\S*/?"+ // else anything without space
- @")"+
- @")";
-
+ @"((\b((news|http|https|ftp|file|irc)://|mailto:|(www|ftp)\.|\S* \S*\ )|(?<=^|\s)/\S+/|(?<=^|\s)~/\S+)\S*\b/?)";
static Regex regex;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]