Changeset 2636 in josm
- Timestamp:
- 2009-12-14T17:10:27+01:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/search/SearchCompiler.java
r2604 r2636 159 159 } 160 160 } else { 161 String value= null;161 String mv = null; 162 162 163 163 if (key.equals("timestamp")) { 164 value= DateUtils.fromDate(osm.getTimestamp());164 mv = DateUtils.fromDate(osm.getTimestamp()); 165 165 } else { 166 value= osm.get(key);167 } 168 169 if ( value== null)166 mv = osm.get(key); 167 } 168 169 if (mv == null) 170 170 return false; 171 171 172 String v1 = caseSensitive ? value : value.toLowerCase(); 172 String v1 = caseSensitive ? mv : mv.toLowerCase(); 173 String v2 = caseSensitive ? value : value.toLowerCase(); 173 174 174 175 // is not Java 1.5 175 176 //v1 = java.text.Normalizer.normalize(v1, java.text.Normalizer.Form.NFC); 176 177 //v2 = java.text.Normalizer.normalize(v2, java.text.Normalizer.Form.NFC); 177 return v1.indexOf(v alue) != -1;178 return v1.indexOf(v2) != -1; 178 179 } 179 180
Note:
See TracChangeset
for help on using the changeset viewer.