Esempio n. 1
0
        public static string AddJammer(string message)
        {
            string jammer = Caches.GetJammer();
            Match  match  = r[0].Match(message);

            if (match.Success)
            {
                message = message.Replace(match.Groups[0].ToString(), jammer + "\r\n");
            }
            match = r[1].Match(message);
            if (match.Success)
            {
                message = message.Replace(match.Groups[0].ToString(), jammer + "\n");
            }
            match = r[2].Match(message);
            if (match.Success)
            {
                message = message.Replace(match.Groups[0].ToString(), jammer + "\r");
            }
            match = r[3].Match(message);
            if (match.Success)
            {
                message = message.Replace(match.Groups[0].ToString(), jammer + "<br />");
            }
            match = r[4].Match(message);
            if (match.Success)
            {
                message = message.Replace(match.Groups[0].ToString(), jammer + "</p>");
            }
            return(message + jammer);
        }