Changeset 30125 in osm for applications/editors/josm/plugins/wikipedia/src
- Timestamp:
- 2013-12-15T11:44:32+01:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/wikipedia/src/org/wikipedia/WikipediaApp.java
r30100 r30125 199 199 url = decodeURL(url); 200 200 // extract Wikipedia language and 201 final Matcher m = Pattern.compile(" https?://(\\w*)\\.wikipedia\\.org/wiki/(.*)").matcher(url);201 final Matcher m = Pattern.compile("(https?:)?//(\\w*)\\.wikipedia\\.org/wiki/(.*)").matcher(url); 202 202 if (!m.matches()) { 203 203 return null; 204 204 } 205 return new WikipediaLangArticle(m.group( 1), m.group(2));205 return new WikipediaLangArticle(m.group(2), m.group(3)); 206 206 } 207 207
Note:
See TracChangeset
for help on using the changeset viewer.