Changeset 16134 in osm for applications/editors/josm/plugins/openstreetbugs/src
- Timestamp:
- 2009-06-26T15:30:38+02:00 (16 years ago)
- Location:
- applications/editors/josm/plugins/openstreetbugs/src/org/openstreetmap/josm/plugins/osb/api
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/openstreetbugs/src/org/openstreetmap/josm/plugins/osb/api/CloseAction.java
r13497 r16134 57 57 } 58 58 59 if("ok".equalsIgnoreCase(result )) {59 if("ok".equalsIgnoreCase(result.trim())) { 60 60 n.put("state", "1"); 61 61 Main.map.mapView.repaint(); -
applications/editors/josm/plugins/openstreetbugs/src/org/openstreetmap/josm/plugins/osb/api/DownloadAction.java
r13497 r16134 76 76 String idPattern = "\\d+"; 77 77 String floatPattern = "-?\\d+\\.\\d+"; 78 String pattern = "putAJAXMarker\\ (("+idPattern+"),("+floatPattern+"),("+floatPattern+"),\"(.*)\",([01])\\)";78 String pattern = "putAJAXMarker\\s*\\(\\s*("+idPattern+")\\s*,\\s*("+floatPattern+")\\s*,\\s*("+floatPattern+")\\s*,\\s*(?:\"|\')(.*)(?:\"|\')\\s*,\\s*([01])\\s*\\)"; 79 79 Pattern p = Pattern.compile(pattern); 80 80 Matcher m = p.matcher(content); -
applications/editors/josm/plugins/openstreetbugs/src/org/openstreetmap/josm/plugins/osb/api/EditAction.java
r13497 r16134 60 60 } 61 61 62 if("ok".equalsIgnoreCase(result) ) {62 if("ok".equalsIgnoreCase(result) || "comment added\n".equalsIgnoreCase(result)) { 63 63 String desc = n.get("note"); 64 64 desc = desc.concat("<hr />").concat(comment); -
applications/editors/josm/plugins/openstreetbugs/src/org/openstreetmap/josm/plugins/osb/api/NewAction.java
r13497 r16134 68 68 } 69 69 70 Pattern resultPattern = Pattern.compile("ok\\s+(\\d+) ");70 Pattern resultPattern = Pattern.compile("ok\\s+(\\d+)\\s*"); 71 71 Matcher m = resultPattern.matcher(result); 72 72 String id = "-1"; … … 74 74 id = m.group(1); 75 75 } else { 76 throw new RuntimeException(tr("Couldn't create new bug. Result: {0}" +result));76 throw new RuntimeException(tr("Couldn't create new bug. Result: {0}", result)); 77 77 } 78 78
Note:
See TracChangeset
for help on using the changeset viewer.