mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-04 02:02:41 +08:00
update md5 uuid regex (#4780)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user