Plugin Directory

Changeset 708199


Ignore:
Timestamp:
05/05/2013 01:03:02 PM (13 years ago)
Author:
tkrivickas
Message:

DEVBUG fixed twitch regex failing on URLs without 'www'

File:
1 edited

Legend:

Unmodified
Added
Removed
  • live-stream-badger/trunk/apis/class-api-twitch.php

    r700997 r708199  
    1010
    1111    const FORMAT_CHANNEL_TO_URL = 'http://www.twitch.tv/%s';
    12     const REGEX_TWITCH_URL      = '%http://(?:www)?\.twitch\.tv/([a-zA-Z0-9_\-\.]+)(?:/.)?%';
     12    const REGEX_TWITCH_URL      = '%http://(?:www\.)?twitch\.tv/([a-zA-Z0-9_\-\.]+)(?:/.)?%';
    1313
    1414    function get_api_identifier() {
Note: See TracChangeset for help on using the changeset viewer.