You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
570 B
23 lines
570 B
using System;
|
|
|
|
namespace MediaBrowser.Model.ApiClient
|
|
{
|
|
public static class ApiHelpers
|
|
{
|
|
/// <summary>
|
|
/// Gets the name of the slug.
|
|
/// </summary>
|
|
/// <param name="name">The name.</param>
|
|
/// <returns>System.String.</returns>
|
|
public static string GetSlugName(string name)
|
|
{
|
|
if (string.IsNullOrEmpty(name))
|
|
{
|
|
throw new ArgumentNullException("name");
|
|
}
|
|
|
|
return name.Replace('/', '-').Replace('?', '-').Replace('&', '-');
|
|
}
|
|
}
|
|
}
|