Skip to content

Commit

Permalink
Change regular expression to needed separator before date.
Browse files Browse the repository at this point in the history
  • Loading branch information
henning-gerhardt committed Aug 16, 2021
1 parent 449f400 commit 64d5ad4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public class NewspaperProcessesMigrator {
* Regular expression to find (and remove) the individual part of the
* process title, to get the base process title.
*/
private static final String INDIVIDUAL_PART = "(?<=.)\\p{Punct}*(?:1[6-9]|20)\\d{2}\\p{Punct}?(?:0[1-9]|1[012]).*$";
private static final String INDIVIDUAL_PART = "(?<=.)\\p{Punct}+(?:1[6-9]|20)\\d{2}\\p{Punct}?(?:0[1-9]|1[012]).*$";

/**
* A regular expression describing a four-digit year number or a double year
Expand Down

0 comments on commit 64d5ad4

Please sign in to comment.