Project

General

Profile

« Previous | Next » 

Revision 50389

fixed date pattern because Miriam has fail

View differences:

WDSUtils.java
145 145

  
146 146
    public static boolean isDate(final String date){
147 147
        //final Pattern pattern = Pattern.compile("(\\d{4})|(\\d{4}-\\d{2})|(\\d{4}-\\d{2}--\\d{4}-d{2}|(\\d{4}--\\d{4}))");
148
        final Pattern pattern = Pattern.compile("(([0-9]+)-*)+");
148
        final Pattern pattern = Pattern.compile("\\d{4}");
149 149
        final Matcher matcher = pattern.matcher(date);
150 150
        return matcher.find();
151 151
    }

Also available in: Unified diff