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

Version Path
onebox-2.2.19 lib/onebox/engine/twitch_stream_onebox.rb
onebox-2.2.18 lib/onebox/engine/twitch_stream_onebox.rb
onebox-2.2.17 lib/onebox/engine/twitch_stream_onebox.rb
onebox-2.2.16 lib/onebox/engine/twitch_stream_onebox.rb
onebox-2.2.15 lib/onebox/engine/twitch_stream_onebox.rb
onebox-2.2.14 lib/onebox/engine/twitch_stream_onebox.rb
onebox-2.2.13 lib/onebox/engine/twitch_stream_onebox.rb