From ca233b582bbb072c6bb9200755c7997056d2ecd4 Mon Sep 17 00:00:00 2001 From: inga-lovinde <52715130+inga-lovinde@users.noreply.github.com> Date: Sun, 4 Jul 2010 13:25:52 +0000 Subject: [PATCH] Fixed smileys parsing in ubbparser --- Common/UBBParser.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Common/UBBParser.cs b/Common/UBBParser.cs index 06de863..7fd8b8f 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;