mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-21 08:02:39 +08:00
change regexp (#8126)
This commit is contained in:
@@ -50,7 +50,7 @@ interface IDownloadRequest {
|
||||
handler: DownloadHandler;
|
||||
}
|
||||
|
||||
const REGEX = /^\w+:\/\/.*/;
|
||||
const REGEX = /^(?:\w+:\/\/|\.+\/).+/;
|
||||
|
||||
const downloadImage = (url: string, options: IDownloadParseOptions, onComplete: CompleteCallback) => {
|
||||
// if createImageBitmap is valid, we can transform blob to ImageBitmap. Otherwise, just use HTMLImageElement to load
|
||||
|
||||
Reference in New Issue
Block a user