Skip to content

Commit

Permalink
Update formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyrrrz committed Sep 23, 2023
1 parent 2095aca commit 327b248
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions YoutubeExplode/Videos/VideoId.cs
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,9 @@ private static bool IsValid(string videoId) =>

// Live URL
// https://www.youtube.com/live/jfKfPfyJRdk
var liveMatch = Regex
.Match(videoIdOrUrl, @"youtube\..+?/live/(.*?)(?:\?|&|/|$)")
.Groups[1].Value.Pipe(WebUtility.UrlDecode);
var liveMatch = Regex.Match(videoIdOrUrl, @"youtube\..+?/live/(.*?)(?:\?|&|/|$)").Groups[
1
].Value.Pipe(WebUtility.UrlDecode);

if (!string.IsNullOrWhiteSpace(liveMatch) && IsValid(liveMatch))
return liveMatch;
Expand Down

0 comments on commit 327b248

Please sign in to comment.