Showing
1 changed file
with
2 additions
and
4 deletions
@@ -15,12 +15,10 @@ exports.handleOrderList = (data, w, h) => { | @@ -15,12 +15,10 @@ exports.handleOrderList = (data, w, h) => { | ||
15 | } | 15 | } |
16 | 16 | ||
17 | function replaceWH(img) { | 17 | function replaceWH(img) { |
18 | - return img.replace(/(^https?:|\{width\}|\{height\})/g, function($0) { | 18 | + return img.replace(/(\{width\}|\{height\})/g, function($0) { |
19 | const dict = { | 19 | const dict = { |
20 | '{width}': w, | 20 | '{width}': w, |
21 | - '{height}': h, | ||
22 | - 'http:': '', | ||
23 | - 'https:': '' | 21 | + '{height}': h |
24 | }; | 22 | }; |
25 | 23 | ||
26 | return dict[$0]; | 24 | return dict[$0]; |
-
mentioned in commit 443b898a
-
mentioned in merge request !79
-
mentioned in commit 54b02c9a
-
mentioned in commit 54b02c9a
-
Please register or login to post a comment