mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-02-22 23:23:54 +08:00
Fix autosizing of images with width and height containing decimals
This commit is contained in:
parent
efb3a04bb4
commit
fab7314807
1 changed files with 1 additions and 1 deletions
|
@ -3,7 +3,7 @@ function _getDimension(node, dim) {
|
||||||
if (!raw) {
|
if (!raw) {
|
||||||
return [null, ''];
|
return [null, ''];
|
||||||
}
|
}
|
||||||
const valueRegexp = /(\d*)(.*)/;
|
const valueRegexp = /([\d.]*)(.*)/;
|
||||||
const match = valueRegexp.exec(raw);
|
const match = valueRegexp.exec(raw);
|
||||||
if (!match) {
|
if (!match) {
|
||||||
return [null, ''];
|
return [null, ''];
|
||||||
|
|
Loading…
Reference in a new issue