Hexer10 / youtube_explode_dart

Dart library to interact with many Youtube APIs
https://pub.dev/packages/youtube_explode_dart
BSD 3-Clause "New" or "Revised" License
301 stars 122 forks source link

[BUG] Can't parse Japanese channel username #207

Closed prateekmedia closed 2 years ago

prateekmedia commented 2 years ago

Describe the bug When entering a valid Japanese channel username this package register it as an invalid username.

To Reproduce Use the below channel username in the getUsername function. いまにゅのプログラミング塾

Stacktrace Include here the stacktrace (if applicable).

flutter: Invalid argument (urlOrUsername): Invalid username: "https://www.youtube.com/c/いまにゅのプログラミング塾"

Enviroment: (please complete the following information):

Additional context Not only Japanese but there are many characters that could be in a username so please remove the 0-9a-zA-Z RegExp from validateUsername.