Relax sFilterLeftInt to also match on integers which are followed by other chars.

..so we also match eg: '2/13' (-> 2)
This commit is contained in:
Adrian Ulrich 2017-01-24 21:03:25 +01:00
parent a6442948fc
commit a98eb36a1c

View File

@ -49,7 +49,7 @@ public class MediaMetadataExtractor extends HashMap<String, ArrayList<String>> {
/**
* Regexp matching the first lefthand integer
*/
private static final Pattern sFilterLeftInt = Pattern.compile("^0*(\\d+)");
private static final Pattern sFilterLeftInt = Pattern.compile("^0*(\\d+).*$");
/**
* Regexp matching anything
*/