Changeset 11171 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2016-10-26T21:23:24+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/GettingStarted.java
r11040 r11171 71 71 * Grabs current MOTD from cache or webpage and parses it. 72 72 */ 73 privatestatic class MotdContent extends CacheCustomContent<IOException> {73 static class MotdContent extends CacheCustomContent<IOException> { 74 74 MotdContent() { 75 75 super("motd.html", CacheCustomContent.INTERVAL_DAILY); … … 161 161 } 162 162 163 privateString fixImageLinks(String s) {164 Matcher m = Pattern.compile("src=\" "+Main.getJOSMWebsite()+"/browser/trunk(/images/.*?\\.png)\\?format=raw\"").matcher(s);163 static String fixImageLinks(String s) { 164 Matcher m = Pattern.compile("src=\"/browser/trunk(/images/.*?\\.png)\\?format=raw\"").matcher(s); 165 165 StringBuffer sb = new StringBuffer(); 166 166 while (m.find()) { 167 167 String im = m.group(1); 168 URL u = getClass().getResource(im);168 URL u = GettingStarted.class.getResource(im); 169 169 if (u != null) { 170 170 m.appendReplacement(sb, Matcher.quoteReplacement("src=\"" + u + '\"'));
Note:
See TracChangeset
for help on using the changeset viewer.