From c8e10c6d9f14f52718d623416db7b1e21a5314f2 Mon Sep 17 00:00:00 2001 From: trizen Date: Wed, 27 May 2020 18:30:35 +0300 Subject: - Allow channel & playlist IDs to be longer (between 11 and 64 characters). MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This also allows IDs of "Albums & Singles". Example: fair-viewer -up=UCmsgp1PvOsb1sHxeiT_403A ...now allows the selection of the 5th result, which is of type "Albums & Singles". Signed-off-by: Jesús --- lib/WWW/FairViewer/RegularExpressions.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/WWW/FairViewer/RegularExpressions.pm') diff --git a/lib/WWW/FairViewer/RegularExpressions.pm b/lib/WWW/FairViewer/RegularExpressions.pm index 6c298f2..6b8ed5f 100644 --- a/lib/WWW/FairViewer/RegularExpressions.pm +++ b/lib/WWW/FairViewer/RegularExpressions.pm @@ -26,7 +26,7 @@ our $digit_or_equal_re = qr/(?(?=[1-9])|=)/; our $non_digit_or_opt_re = qr{^(?!$range_num_re)(?>[0-9]{1,3}[^0-9]|[0-9]{4}|[^0-9$opt_begin_chars])}; # Generic name -my $generic_name_re = qr/[a-zA-Z0-9_.\-]{11,34}/; +my $generic_name_re = qr/[a-zA-Z0-9_.\-]{11,64}/; our $valid_channel_id_re = qr{^(?:.*/channel/)?(?(?:\w+(?:[-.]++\w++)*|$generic_name_re))(?:/.*)?\z}; our $get_channel_videos_id_re = qr{^.*/channel/(?(?:\w+(?:[-.]++\w++)*|$generic_name_re))}; -- cgit v1.2.3