From 150d9b5f2fd81ba009e8200f13955523228a2919 Mon Sep 17 00:00:00 2001 From: winton Date: Mon, 30 Mar 2020 15:49:12 -0700 Subject: [PATCH] Allow get parameters in image URL pattern --- src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index ccef982..16ff3fe 100644 --- a/src/index.js +++ b/src/index.js @@ -269,7 +269,7 @@ class SimpleImage { static get pasteConfig() { return { patterns: { - image: /https?:\/\/\S+\.(gif|jpe?g|tiff|png)$/i + image: /https?:\/\/\S+\.(gif|jpe?g|tiff|png)(\?[^?]+|$)/i }, tags: [ 'img' ], files: {