Skip to content

Commit

Permalink
細かな修正
Browse files Browse the repository at this point in the history
  • Loading branch information
kosugikun committed Aug 10, 2024
1 parent 333af91 commit d4698ca
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
* Audio source manager that implements finding NicoNico tracks based on URL.
*/
public class NicoAudioSourceManager implements AudioSourceManager, HttpConfigurable {
private static final String TRACK_URL_REGEX = "^(?:http://|https://|)(?:(?:www\\.|sp\\.|)nicovideo\\.jp/watch/|nico\\.ms/)(sm[0-9]+)(?:\\?.*|)$";
private static final String TRACK_URL_REGEX = "^(?:http://|https://|)(?:(?:www\\.|sp\\.|)nicovideo\\.jp/watch/|nico\\.ms/)((?:sm|nm)[0-9]+)(?:\\?.*|)$";

private static final Pattern trackUrlPattern = Pattern.compile(TRACK_URL_REGEX);
private static final Logger log = LoggerFactory.getLogger(NicoAudioSourceManager.class);
Expand Down

0 comments on commit d4698ca

Please sign in to comment.