From af73dd7c4e5134e608f03072e07cfc48073115a5 Mon Sep 17 00:00:00 2001 From: zealotchen Date: Tue, 26 Mar 2024 11:49:23 +0800 Subject: [PATCH] feat(vue-next): fix image url style parse --- .../hippy-vue-next-style-parser/src/style-parser/css-parser.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/driver/js/packages/hippy-vue-next-style-parser/src/style-parser/css-parser.ts b/driver/js/packages/hippy-vue-next-style-parser/src/style-parser/css-parser.ts index c1dfc31a083..45de07d0e4b 100644 --- a/driver/js/packages/hippy-vue-next-style-parser/src/style-parser/css-parser.ts +++ b/driver/js/packages/hippy-vue-next-style-parser/src/style-parser/css-parser.ts @@ -330,7 +330,7 @@ function parseBackgroundImage( }); processedValue.colorStopList = colorStopList; } else { - const regexp = /(?:\(['"]?).{0,500}?(?:['"]?\))/; + const regexp = /(?:\(['"]?)(.*?)(?:['"]?\))/; const executed = regexp.exec(value); if (executed && executed.length > 1) { [, processedValue] = executed;