Ignore:
Timestamp:
2011-08-26T22:30:56+02:00 (8 years ago)
Author:
stoecker
Message:

fix #6678 - patch by simon04 - don't suggest tag correction for comments

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/corrector/ReverseWayTagCorrector.java

    r3916 r4345  
    138138                    newValue = invertNumber(value);
    139139                }
    140             } else if (!key.startsWith("name") && !key.endsWith("name")) {
     140            } else if (!ignoreKeyForPrefixSuffixCorrection(key)) {
    141141                for (PrefixSuffixSwitcher prefixSuffixSwitcher : prefixSuffixSwitchers) {
    142142                    newKey = prefixSuffixSwitcher.apply(key);
     
    211211                        + "to maintain data consistency."));
    212212    }
     213
     214    private static boolean ignoreKeyForPrefixSuffixCorrection(String key) {
     215        return key.startsWith("name") || key.endsWith("name")
     216                || key.equalsIgnoreCase("fixme") || key.startsWith("note");
     217    }
    213218}
Note: See TracChangeset for help on using the changeset viewer.