module VkMusic::Utility::ArtistUrlParser

Artist URL parser

Constants

ARTIST_POSTFIX

Regex for artist URL

Public Class Methods

call(url) click to toggle source

@param url [String] @return [String?]

# File lib/vk_music/utility/artist_url_parser.rb, line 15
def self.call(url)
  url.match(ARTIST_POSTFIX)&.captures&.first
rescue StandardError
  nil
end