mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-02-21 22:54:11 +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) {
|
||||
return [null, ''];
|
||||
}
|
||||
const valueRegexp = /(\d*)(.*)/;
|
||||
const valueRegexp = /([\d.]*)(.*)/;
|
||||
const match = valueRegexp.exec(raw);
|
||||
if (!match) {
|
||||
return [null, ''];
|
||||
|
|
Loading…
Reference in a new issue