Skip to content

Commit

Permalink
geosite: support for mobile Wikipedia/Wikivoyage
Browse files Browse the repository at this point in the history
The URL patterns didn't respect the additional ".m" part.

Having tested several article languages (13 for Wikipedia, 16 for
Wikivoyage), the following do not work despite working in the desktop
version because the DOM of the mobile version does not contain the
coordinates:

Wikipedia: ku nl
Wikivoyage: es he pt sv zh
  • Loading branch information
marcows committed Jan 5, 2019
1 parent 2c0ba9f commit c40e29b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions data/geosite.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@
var scanners = [
{
func: scanGeosite_Wikipedia,
urlpattern: /^https:\/\/[a-z]+\.wikipedia\.org\/wiki\//
urlpattern: /^https:\/\/[a-z.]+\.wikipedia\.org\/wiki\//
},{
func: scanGeosite_Wikivoyage,
urlpattern: /^https:\/\/[a-z]+\.wikivoyage\.org\/wiki\//
urlpattern: /^https:\/\/[a-z.]+\.wikivoyage\.org\/wiki\//
},{
func: scanGeosite_GeoTag,
urlpattern: /^(https?|file):\/\//
Expand Down

0 comments on commit c40e29b

Please sign in to comment.