Making WordPress.org


Ignore:
Timestamp:
04/27/2017 06:11:16 PM (8 years ago)
Author:
iandunn
Message:

Events: Refactor the ideographic fallback for use with ASCII queries too

This was originally intended for ideographic languages, but there are new edge cases where it is helpful for ASCII queries as well.

See https://github.com/coreymckrill/nearby-wordpress-events/issues/37

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/api.wordpress.org/public_html/events/1.0/tests/test-index.php

    r5409 r5417  
    270270        ),
    271271
     272        // Users will often type them without the dash, bypassing an exact match
     273        'city-with-dashes-in-formal-name' => array(
     274            'input' => array(
     275                'location_name' => 'Osakashi',
     276                'locale'        => 'ja',
     277                'timezone'      => 'Asia/Tokyo',
     278            ),
     279            'expected' => array(
     280                'description' => 'osaka',
     281                'latitude'    => '34.694',
     282                'longitude'   => '135.502',
     283                'country'     => 'JP',
     284            ),
     285        ),
    272286
    273287        /*
Note: See TracChangeset for help on using the changeset viewer.