From 2b6cba20103667e964b5d4964fa33aabfdb79906 Mon Sep 17 00:00:00 2001 From: Yanna Date: Thu, 4 Jul 2019 15:01:43 +0800 Subject: [PATCH] fix md5UUid match (#4812) --- cocos/load-pipeline/md5-pipe.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cocos/load-pipeline/md5-pipe.js b/cocos/load-pipeline/md5-pipe.js index 7ea697f39b..f1fe6f1ac1 100644 --- a/cocos/load-pipeline/md5-pipe.js +++ b/cocos/load-pipeline/md5-pipe.js @@ -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);