Changeset 6577 in josm for trunk/src


Ignore:
Timestamp:
2013-12-31T12:32:38+01:00 (11 years ago)
Author:
simon04
Message:

Make strings like "ways 123 and 456, 789" pastable in download object dialog

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/dialogs/OsmIdSelectionDialog.java

    r6448 r6577  
    199199            }
    200200            if (buf.length() <= Main.pref.getInteger("downloadprimitive.max-autopaste-length", 2000)) {
    201                 tfId.tryToPasteFrom(txt);
     201                tfId.tryToPasteFrom(txt.replaceAll("[^0-9]+", " ").replaceAll("\\s\\s+", " "));
    202202            }
    203203        }
Note: See TracChangeset for help on using the changeset viewer.