fix md5UUid match (#4812)

This commit is contained in:
Yanna
2019-07-04 15:01:43 +08:00
committed by Weiliang Wang
parent f8cc93ad6b
commit 2b6cba2010
+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 = /([^/\\]*)\.[^\.]*$/;
function getUuidFromURL (url) {
var matches = url.match(UuidRegex);