Project

General

Profile

« Previous | Next » 

Revision 945f3ef3

Added by Andreas Kohlbecker over 6 years ago

ref #6026 fixing bug in publication regex pattern

View differences:

app-import/src/main/java/eu/etaxonomy/cdm/io/iapt/IAPTExcelImport.java
77 77
    private  static List<String> expectedKeys= Arrays.asList(new String[]{
78 78
            REGISTRATIONNO_PK, HIGHERTAXON, FULLNAME, AUTHORSSPELLING, LITSTRING, REGISTRATION, TYPE, CAVEATS, FULLBASIONYM, FULLSYNSUBST, NOTESTXT, REGDATE, NAMESTRING, BASIONYMSTRING, SYNSUBSTSTR, AUTHORSTRING});
79 79

  
80
    private static final Pattern nomRefTokenizeP = Pattern.compile("^(?<title>.*):\\s(?<detail>[^\\.:]+)\\.(?<date>.*?)(?:\\s\\((?<issue>[^\\)]*)\\)\\s*)\\.?$");
80
    private static final Pattern nomRefTokenizeP = Pattern.compile("^(?<title>.*):\\s(?<detail>[^\\.:]+)\\.(?<date>.*?)(?:\\s\\((?<issue>[^\\)]*)\\)\\s*)?\\.?$");
81 81
    private static final Pattern[] datePatterns = new Pattern[]{
82 82
            // NOTE:
83 83
            // The order of the patterns is extremely important!!!

Also available in: Unified diff