WordPress.org

Making WordPress.org

Changeset 6039


Ignore:
Timestamp:
10/16/2017 10:40:35 PM (21 months ago)
Author:
coffee2code
Message:

Browse Happy API: Remove unnecessary starting sub-pattern for platform regex.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/api.wordpress.org/public_html/core/browse-happy/1.0/parse.php

    r6038 r6039  
    137137    // Identify platform/OS in user-agent string.
    138138    if ( preg_match(
    139         '/^.+?'                                                   // Possibly starts with one or more characters
    140         . '(?P<platform>'                                         // Capture subpattern matches into 'platform' array
     139        '/(?P<platform>'                                          // Capture subpattern matches into 'platform' array
    141140        .     'Windows Phone( OS)?|Symbian|SymbOS|Android|iPhone' // Platform tokens
    142141        .     '|iPad|Windows|Linux|Macintosh|FreeBSD|OpenBSD'     // More platform tokens
Note: See TracChangeset for help on using the changeset viewer.