update regexp to match uuid (#5488)

This commit is contained in:
Santy-Wang
2019-09-29 19:34:48 +08:00
committed by pandamicro
parent 1e5248286a
commit e6a54acd0c
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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);
+1 -1
View File
@@ -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);