Sha256: c129ab10d44b56f18c49150b6c72cd1846ce81b5946d485d18370261b3af1da0
Contents?: true
Size: 324 Bytes
Versions: 7
Compression:
Stored size: 324 Bytes
Contents
# frozen_string_literal: true require_relative '../mixins/twitch_onebox' class Onebox::Engine::TwitchStreamOnebox def self.twitch_regexp /^https?:\/\/(?:www\.|go\.)?twitch\.tv\/(?!directory)([a-zA-Z0-9_]{4,25})$/ end include Onebox::Mixins::TwitchOnebox def query_params "channel=#{twitch_id}" end end
Version data entries
7 entries across 7 versions & 1 rubygems