Changeset 8933 in josm for trunk/src/org/openstreetmap/josm/tools
- Timestamp:
- 2015-10-23T14:50:40+02:00 (9 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/tools
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/tools/Utils.java
r8928 r8933 1411 1411 */ 1412 1412 public static boolean hasExtension(String filename, String... extensions) { 1413 String name = filename.toLowerCase(Locale.ENGLISH); 1413 String name = filename.toLowerCase(Locale.ENGLISH).replace("?format=raw", ""); 1414 1414 for (String ext : extensions) { 1415 1415 if (name.endsWith('.' + ext.toLowerCase(Locale.ENGLISH))) -
trunk/src/org/openstreetmap/josm/tools/WikiReader.java
r8870 r8933 142 142 // add a border="0" attribute to images, otherwise the internal help browser 143 143 // will render a thick border around images inside an <a> element 144 // remove width information to avoid distorded images (fix #11262) 144 145 b.append(line.replaceAll("<img ", "<img border=\"0\" ") 146 .replaceAll("width=\"(\\d+)\"", "") 145 147 .replaceAll("<span class=\"icon\">.</span>", "") 146 148 .replaceAll("href=\"/", "href=\"" + baseurl + '/')
Note:
See TracChangeset
for help on using the changeset viewer.