Stript out certain characters when sending a pushover message #2385

This commit is contained in:
TidusJar 2018-08-21 13:55:24 +01:00
commit ce79fec216
4 changed files with 37 additions and 5 deletions

View file

@ -75,5 +75,10 @@ namespace Ombi.Helpers
return -1;
}
public static string StripCharacters(this string str, params char[] chars)
{
return string.Concat(str.Where(c => !chars.Contains(c)));
}
}
}