[smuxi/experiments/any_server_support: 4/34] Engine(-Tests): fixed matching URLs that contain a ! in the path
- From: Mirco M. M. Bauer <mmmbauer src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [smuxi/experiments/any_server_support: 4/34] Engine(-Tests): fixed matching URLs that contain a ! in the path
- Date: Sun, 9 Feb 2014 14:24:53 +0000 (UTC)
commit ed9d23bb266d63b0d965d8a51d2cc51e7259362d
Author: Mirco Bauer <meebey meebey net>
Date: Wed Jan 15 05:33:15 2014 +0100
Engine(-Tests): fixed matching URLs that contain a ! in the path
src/Engine-Tests/MessageBuilderTests.cs | 7 +++++++
src/Engine/Config/MessageBuilderSettings.cs | 2 +-
2 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/src/Engine-Tests/MessageBuilderTests.cs b/src/Engine-Tests/MessageBuilderTests.cs
index fabc8ef..54d4288 100644
--- a/src/Engine-Tests/MessageBuilderTests.cs
+++ b/src/Engine-Tests/MessageBuilderTests.cs
@@ -520,6 +520,13 @@ namespace Smuxi.Engine
builder.Append(new TextMessagePartModel("<RAOF> meebey: Associated mono branch is
master-experimental in "));
builder.Append(new UrlMessagePartModel("git+ssh://git.debian.org/~/public_git/mono.git"));
TestMessage(msg, builder.ToMessage());
+
+ msg = "<knocte> meebey: does this URL highlight ok with latest master?
https://groups.google.com/forum/#!topic/fsharp-opensource/KLejo_vw5R4";
+ builder = new MessageBuilder();
+ builder.TimeStamp = DateTime.MinValue;
+ builder.Append(new TextMessagePartModel("<knocte> meebey: does this URL highlight ok with latest
master? "));
+ builder.Append(new
UrlMessagePartModel("https://groups.google.com/forum/#!topic/fsharp-opensource/KLejo_vw5R4"));
+ TestMessage(msg, builder.ToMessage());
}
[Test]
diff --git a/src/Engine/Config/MessageBuilderSettings.cs b/src/Engine/Config/MessageBuilderSettings.cs
index 774f3d8..d219aa1 100644
--- a/src/Engine/Config/MessageBuilderSettings.cs
+++ b/src/Engine/Config/MessageBuilderSettings.cs
@@ -64,7 +64,7 @@ namespace Smuxi.Engine
static void InitBuiltinSmartLinks()
{
- string path_last_chars = @"a-zA-Z0-9#/%&=\-_+;~";
+ string path_last_chars = @"a-zA-Z0-9#/%&=\-_+;~!";
string path_chars = path_last_chars + @")(?.,";
string domainchars = @"[a-z0-9\-]+";
string subdomain = domainchars + @"\.";
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]