@cosmetic Added Parsing Library: A dotnet library that "exports" our parsing interface.

This commit is contained in:
Leonardo Galli
2019-02-18 00:09:41 +01:00
parent 9bc50749ae
commit 4015ff08a6
10 changed files with 190 additions and 39 deletions
+12
View File
@@ -0,0 +1,12 @@
using System.IO;
namespace NzbDrone.Common.Extensions
{
public static class PathExtensions
{
public static bool ContainsInvalidPathChars(this string text)
{
return text.IndexOfAny(Path.GetInvalidPathChars()) >= 0;
}
}
}