YouTubePlayerActivity icon indicating copy to clipboard operation
YouTubePlayerActivity copied to clipboard

Matcher.group(1) does this safe if we access directly index 1?

Open mochadwi opened this issue 5 years ago • 0 comments

https://github.com/TheFinestArtist/YouTubePlayerActivity/blob/fc4baabb6d0fac7883e0a447c3aa5ae5df18a7ad/library/src/main/java/com/thefinestartist/ytpa/utils/YouTubeUrlParser.java#L23

Referenced from your line above, is this safe for future reference?

I mean, if there's any change from youtube URL and the result from matchers.find() return 1 size, does this will thrown the arrayindexoutofboundsexception instead?

@TheFinestArtist

mochadwi avatar Jul 29 '19 04:07 mochadwi