From 21dd3500285a20988e41b45968ea68b0d932d1a5 Mon Sep 17 00:00:00 2001 From: inga-lovinde <52715130+inga-lovinde@users.noreply.github.com> Date: Sun, 4 Jul 2010 09:46:34 +0000 Subject: [PATCH] Some smileys-related fixes in common --- Common/UBBParser.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Common/UBBParser.cs b/Common/UBBParser.cs index 724e986..06de863 100644 --- a/Common/UBBParser.cs +++ b/Common/UBBParser.cs @@ -33,7 +33,7 @@ namespace FLocal.Common { { ":lol:", "lol" }, }; - private static readonly Dictionary SMILEYS_DATA = (from smile in SMILEYS select new KeyValuePair(new Regex("(\\s+)" + Regex.Escape(smile.Key) + "(\\s+)", RegexOptions.Compiled | RegexOptions.IgnoreCase | RegexOptions.Singleline), match => match.Groups[1] + "\""" + match.Groups[2])).ToDictionary(kvp => kvp.Key, kvp => kvp.Value); + private static readonly Dictionary SMILEYS_DATA = (from smile in SMILEYS select new KeyValuePair(new Regex("(^|\\s+)" + Regex.Escape(smile.Key) + "($|\\s+)", RegexOptions.Compiled | RegexOptions.IgnoreCase | RegexOptions.Singleline), match => match.Groups[1] + "\""" + match.Groups[2])).ToDictionary(kvp => kvp.Key, kvp => kvp.Value); private ITextFormatter inner;