Fixed regex

This commit is contained in:
Tomer Froumin 2016-01-24 21:39:13 +02:00
parent 1dbed708cb
commit 629f735a68
1 changed files with 1 additions and 1 deletions

View File

@ -535,7 +535,7 @@ public class RemoteActivity extends BaseActivity
Pattern.CASE_INSENSITIVE);
}
else {
pattern = Pattern.compile("^(?:https?:\\/\\/)?(?:www\\.|m\\.)?youtu(?:\\.be|be\\.com)\\/watch\\?(?:.*&)?v=([\\w-]+)(?:&.*)?$",
pattern = Pattern.compile("^(?:https?:\\/\\/)?(?:www\\.|m\\.)?youtu(?:\\.be\\/|be\\.com\\/watch\\?v=)([\\w-]+)(?:[\\?&].*)?$",
Pattern.CASE_INSENSITIVE);
}
final Matcher matcher = pattern.matcher(playuri.toString());