Fix autosizing of images with width and height containing decimals

This commit is contained in:
Ben Gotow 2018-02-27 10:26:47 -08:00
parent efb3a04bb4
commit fab7314807

View file

@ -3,7 +3,7 @@ function _getDimension(node, dim) {
if (!raw) {
return [null, ''];
}
const valueRegexp = /(\d*)(.*)/;
const valueRegexp = /([\d.]*)(.*)/;
const match = valueRegexp.exec(raw);
if (!match) {
return [null, ''];