update md5 uuid regex (#4780)

This commit is contained in:
Yanna
2019-07-02 11:15:18 +08:00
committed by Weiliang Wang
parent 6b2c9b0be7
commit cc3887f8b1
+1 -1
View File
@@ -32,7 +32,7 @@ import Pipeline from './pipeline';
const ID = 'MD5Pipe';
const ExtnameRegex = /(\.[^.\n\\/]*)$/;
const UuidRegex = /.*[/\\][0-9a-fA-F]{2}[/\\]([0-9a-fA-F-]{8,})/;
const UuidRegex = /.*[/\\][0-9a-fA-F]{2}[/\\]([0-9a-fA-F-]{8,}(@[^\.]*)?)/;
function getUuidFromURL (url) {
var matches = url.match(UuidRegex);