Skip to content

Commit 402ee87

Browse files
committed
remove 'px' from font-size, rather than last two characters (Not all font-sizes are in px)
1 parent 10ad3fd commit 402ee87

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/library/processInlineTag.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export default function processInlineTag(
3232
style.add(`bgcolor-${backgroundColor.replace(/ /g, '')}`);
3333
}
3434
if (fontSize) {
35-
style.add(`fontsize-${fontSize.substr(0, fontSize.length - 2)}`);
35+
style.add(`fontsize-${fontSize.replace(/px$/g, '')}`);
3636
}
3737
if (fontFamily) {
3838
style.add(`fontfamily-${fontFamily}`);

0 commit comments

Comments
 (0)