fix regexp for year-fallback extraction

Java regexp's are always automatically enclosed by ^$
This commit is contained in:
Adrian Ulrich committed 2017-01-01 18:13:49 +01:00
1 parent 294a670607
commit e92e24ec00
1 file changed
+1 -1
@@ -44,7 +44,7 @@ public class MediaMetadataExtractor extends HashMap<String, ArrayList<String>> {
/**
* Regexp used to match a year in a date field
*/
private static final Pattern sFilterYear = Pattern.compile("(\\d{4})");
private static final Pattern sFilterYear = Pattern.compile(".*(\\d{4}).*");
/**
* Regexp matching the first lefthand integer
*/