- Timestamp:
- 2011-09-26T11:56:15+02:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/preferences/AddWMSLayerPanel.java
r4436 r4466 28 28 import java.util.Set; 29 29 30 import java.util.regex.Pattern; 30 31 import javax.swing.JButton; 31 32 import javax.swing.JFrame; … … 304 305 URL getCapabilitiesUrl = null; 305 306 try { 306 if (! serviceUrlStr.trim().contains("capabilities")) {307 if (!Pattern.compile(".*GetCapabilities.*", Pattern.CASE_INSENSITIVE).matcher(serviceUrlStr).matches()) { 307 308 // If the url doesn't already have GetCapabilities, add it in 308 309 getCapabilitiesUrl = new URL(serviceUrlStr + "VERSION=1.1.1&SERVICE=WMS&REQUEST=GetCapabilities");
Note:
See TracChangeset
for help on using the changeset viewer.