mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-02 16:52:43 +08:00
update regexp to match uuid (#5488)
This commit is contained in:
@@ -32,7 +32,7 @@ import { Pipeline, IPipe } from './pipeline';
|
||||
|
||||
const ID = 'MD5Pipe';
|
||||
const ExtnameRegex = /(\.[^.\n\\/]*)$/;
|
||||
const UuidRegex = /([^/\\]*)\.[^\.]*$/;
|
||||
const UuidRegex = /.*[/\\][0-9a-fA-F]{2}[/\\]([0-9a-fA-F-@]{8,}).*/;
|
||||
|
||||
function getUuidFromURL (url) {
|
||||
let matches = url.match(UuidRegex);
|
||||
|
||||
@@ -27,7 +27,7 @@ import decodeUuid from '../utils/decode-uuid';
|
||||
import { Pipeline, IPipe } from './pipeline';
|
||||
|
||||
const ID = 'SubPackPipe';
|
||||
const UuidRegex = /([^/\\]*)\.[^\.]*$/;
|
||||
const UuidRegex = /.*[/\\][0-9a-fA-F]{2}[/\\]([0-9a-fA-F-@]{8,}).*/;
|
||||
|
||||
function getUuidFromURL(url) {
|
||||
let matches = url.match(UuidRegex);
|
||||
|
||||
Reference in New Issue
Block a user