Ignore:
Timestamp:
2020-03-01T21:33:56+01:00 (4 years ago)
Author:
simon04
Message:

fix #18140 - Switch to OpeningHoursParser

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/validation/tests/ConditionalKeys.java

    r15743 r15978  
    99import java.util.HashSet;
    1010import java.util.List;
     11import java.util.Locale;
    1112import java.util.Set;
    1213import java.util.regex.Matcher;
     
    1718import org.openstreetmap.josm.data.validation.Test;
    1819import org.openstreetmap.josm.data.validation.TestError;
    19 import org.openstreetmap.josm.tools.LanguageInfo;
    2020import org.openstreetmap.josm.tools.Logging;
    2121import org.openstreetmap.josm.tools.SubclassFilteredCollection;
     
    205205                    if (condition.matches(".*[0-9]:[0-9]{2}.*")) {
    206206                        final List<OpeningHourTest.OpeningHoursTestError> errors = openingHourTest.checkOpeningHourSyntax(
    207                                 "", condition, OpeningHourTest.CheckMode.TIME_RANGE, true, LanguageInfo.getJOSMLocaleCode());
     207                                "", condition, true, Locale.getDefault());
    208208                        if (!errors.isEmpty()) {
    209209                            return errors.get(0).getMessage();
Note: See TracChangeset for help on using the changeset viewer.