Skip to content

Commit

Permalink
Allowing hyphens in YouTube user/channel names
Browse files Browse the repository at this point in the history
  • Loading branch information
ehough committed Aug 13, 2013
1 parent 63919e1 commit c961b56
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -236,7 +236,7 @@ public function getOptionDescriptors()
$option = new tubepress_spi_options_OptionDescriptor(tubepress_addons_youtube_api_const_options_names_GallerySource::YOUTUBE_USER_VALUE);
$option->setDefaultValue('3hough');
$option->setLabel('Videos from this YouTube user'); //>(translatable)<
$option->setValidValueRegex($_regexWordChars);
$option->setValidValueRegex('/[\w-]+/');
$toReturn[] = $option;


Expand Down
Expand Up @@ -151,7 +151,7 @@ protected function getExpectedOptions()
$option = new tubepress_spi_options_OptionDescriptor(tubepress_addons_youtube_api_const_options_names_GallerySource::YOUTUBE_USER_VALUE);
$option->setDefaultValue('3hough');
$option->setLabel('Videos from this YouTube user'); //>(translatable)<
$option->setValidValueRegex(self::$_regexWordChars);
$option->setValidValueRegex('/[\w-]+/');
$toReturn[] = $option;

$option = new tubepress_spi_options_OptionDescriptor(tubepress_addons_youtube_api_const_options_names_GallerySource::YOUTUBE_FAVORITES_VALUE);
Expand Down

0 comments on commit c961b56

Please sign in to comment.