probe-image-size
Advanced tools
Comparing version 4.0.0 to 4.0.1
@@ -0,1 +1,7 @@ | ||
4.0.1 / 2019-07-08 | ||
------------------ | ||
- Fix regexp to ignore SVG `stroke-width` attr, #33. | ||
4.0.0 / 2018-03-05 | ||
@@ -2,0 +8,0 @@ ------------------ |
@@ -15,3 +15,3 @@ 'use strict'; | ||
var SVG_HEADER_RE = /<svg\s[^>]+>/; | ||
var SVG_WIDTH_RE = /\bwidth="([^%]+?)"|\bwidth='([^%]+?)'/; | ||
var SVG_WIDTH_RE = /[^-]\bwidth="([^%]+?)"|[^-]\bwidth='([^%]+?)'/; | ||
var SVG_HEIGHT_RE = /\bheight="([^%]+?)"|\bheight='([^%]+?)'/; | ||
@@ -18,0 +18,0 @@ var SVG_VIEWBOX_RE = /\bview[bB]ox="(.+?)"|\bview[bB]ox='(.+?)'/; |
@@ -25,3 +25,3 @@ 'use strict'; | ||
var SVG_HEADER_RE = /<svg\s[^>]+>/; | ||
var SVG_WIDTH_RE = /\bwidth="([^%]+?)"|\bwidth='([^%]+?)'/; | ||
var SVG_WIDTH_RE = /[^-]\bwidth="([^%]+?)"|[^-]\bwidth='([^%]+?)'/; | ||
var SVG_HEIGHT_RE = /\bheight="([^%]+?)"|\bheight='([^%]+?)'/; | ||
@@ -28,0 +28,0 @@ var SVG_VIEWBOX_RE = /\bview[bB]ox="(.+?)"|\bview[bB]ox='(.+?)'/; |
{ | ||
"name": "probe-image-size", | ||
"version": "4.0.0", | ||
"version": "4.0.1", | ||
"description": "Get image size without full download (JPG, GIF, PNG, WebP, BMP, TIFF, PSD)", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
42686