From 0e5e7208a3c4261a9b048156beaa70ff841b1b06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=AD=E8=83=9C=E5=BC=BA?= Date: Thu, 6 Dec 2018 19:58:56 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=A7=A3=E5=86=B3getRealPath=E8=8E=B7?= =?UTF-8?q?=E5=8F=96=E9=9D=9E=E5=9B=BE=E5=83=8F=E7=B1=BB=E5=9E=8B=E7=9A=84?= =?UTF-8?q?base64=E7=B1=BB=E5=9E=8B=E5=9C=B0=E5=9D=80=E9=94=99=E8=AF=AF?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/platforms/h5/helpers/get-real-path.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/platforms/h5/helpers/get-real-path.js b/src/platforms/h5/helpers/get-real-path.js index 9a72fe0b2..b2a7f42d3 100644 --- a/src/platforms/h5/helpers/get-real-path.js +++ b/src/platforms/h5/helpers/get-real-path.js @@ -1,7 +1,7 @@ import getRealRoute from 'uni-helpers/get-real-route' const HTTP_RE = /^(http|https|file):\/\// -const BASE64_IMAGE_RE = /^\s*data:image\// +const BASE64_IMAGE_RE = /^data:[a-z-]+\/[a-z-]+;base64,/ function addBase (filePath) { if (__uniConfig.router.base) { -- GitLab