fix regexp for year-fallback extraction
Java regexp's are always automatically enclosed by ^$
This commit is contained in:
parent
294a670607
commit
e92e24ec00
@ -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
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user