mirror of
https://github.com/BililiveRecorder/BililiveRecorder.git
synced 2024-12-26 12:15:42 +08:00
2d6d682165
fix #516
10 lines
345 B
C#
10 lines
345 B
C#
using System.Text.RegularExpressions;
|
|
|
|
namespace BililiveRecorder.Core
|
|
{
|
|
public static class RoomIdFromUrl
|
|
{
|
|
public static readonly Regex Regex = new Regex("""^(?:(?:https?:\/\/)?live\.bilibili\.com\/(?:blanc\/|h5\/)?)?(\d+)\/?(?:[#\?].*)?$""", RegexOptions.Compiled | RegexOptions.Singleline | RegexOptions.IgnoreCase);
|
|
}
|
|
}
|