mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-20 15:55:25 +03:00
re-enable chromecast
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
using System;
|
||||
using System.Globalization;
|
||||
using System.Text.RegularExpressions;
|
||||
|
||||
namespace MediaBrowser.Model.Extensions
|
||||
{
|
||||
@@ -70,5 +71,28 @@ namespace MediaBrowser.Model.Extensions
|
||||
{
|
||||
return str.TrimStart(c);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Splits the specified string.
|
||||
/// </summary>
|
||||
/// <param name="str">The string.</param>
|
||||
/// <param name="term">The term.</param>
|
||||
/// <returns>System.String[].</returns>
|
||||
public static string[] RegexSplit(string str, string term)
|
||||
{
|
||||
return Regex.Split(str, term, RegexOptions.IgnoreCase);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Splits the specified string.
|
||||
/// </summary>
|
||||
/// <param name="str">The string.</param>
|
||||
/// <param name="term">The term.</param>
|
||||
/// <param name="limit">The limit.</param>
|
||||
/// <returns>System.String[].</returns>
|
||||
public static string[] RegexSplit(string str, string term, int limit)
|
||||
{
|
||||
return new Regex(term).Split(str, limit);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user