Skip to content

Commit

Permalink
Added additional symbols for embedded ID filter
Browse files Browse the repository at this point in the history
  • Loading branch information
valdisiljuconoks authored Sep 20, 2023
1 parent b8cdaf1 commit de7b09b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ namespace Geta.OEmbed.Client.Providers
public class YouTubeVideoResponseFormatter : IProviderResponseFormatter
{
private static readonly Regex SrcFilter = new("src=\"([a-z-0-9-_?=/:.]{1,})\"", RegexOptions.IgnoreCase | RegexOptions.Compiled, TimeSpan.FromSeconds(1));
private static readonly Regex IdFilter = new("/embed/([a-z0-9]+)", RegexOptions.IgnoreCase | RegexOptions.Compiled, TimeSpan.FromSeconds(1));
private static readonly Regex IdFilter = new("/embed/([a-z0-9-_]+)", RegexOptions.IgnoreCase | RegexOptions.Compiled, TimeSpan.FromSeconds(1));

public virtual bool CanFormat(IOEmbedProvider oEmbedProvider, OEmbedResponse oEmbedResponse)
{
Expand Down

0 comments on commit de7b09b

Please sign in to comment.