.convert rewritten a bit, isn't saved in the database anymore, but in redis.

This commit is contained in:
Master Kwoth
2017-10-16 12:34:16 +02:00
parent 099ae62c0b
commit f155619793
13 changed files with 1999 additions and 202 deletions

View File

@ -1,4 +1,5 @@
using System;
using Newtonsoft.Json;
using System;
using System.IO;
using System.Linq;
using System.Text;
@ -9,6 +10,9 @@ namespace NadekoBot.Extensions
{
public static class StringExtensions
{
public static T MapJson<T>(this string str)
=> JsonConvert.DeserializeObject<T>(str);
public static string StripHTML(this string input)
{
return Regex.Replace(input, "<.*?>", String.Empty);