diff --git a/CHANGELOG.md b/CHANGELOG.md index 9123b80..f2b1f0d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -50,4 +50,8 @@ ## 0.0.12 -- Bug fix(#15): Fix invalid upload date. \ No newline at end of file +- Bug fix(#15): Fix invalid upload date. + +## 0.0.13 + +- Bug fix(#15): Fix valid channel expression \ No newline at end of file diff --git a/lib/src/extensions/channel_extension.dart b/lib/src/extensions/channel_extension.dart index 300e19b..6aa0688 100644 --- a/lib/src/extensions/channel_extension.dart +++ b/lib/src/extensions/channel_extension.dart @@ -121,7 +121,7 @@ extension ChannelExtension on YoutubeExplode { return false; } - return !RegExp(r'[^0-9a-zA-Z]').hasMatch(channelId); + return !RegExp(r'[^0-9a-zA-Z_\-]').hasMatch(channelId); } /// Parses a channel id from an url. diff --git a/pubspec.yaml b/pubspec.yaml index 253c915..6957dc5 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: youtube_explode_dart -description: A port in dart of the youtube explode library. Support serveral API functions. -version: 0.0.12 +description: A port in dart of the youtube explode library. Supports several API functions. +version: 0.0.13 homepage: https://github.com/Hexer10/youtube_explode_dart environment: