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;