From dfacc1678886f696de76298008ca67ac825f07ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Thu, 3 Apr 2014 17:19:07 +0200 Subject: [PATCH] Fix regular expression in Style#getFontStyle() --- src/style/Style.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/style/Style.js b/src/style/Style.js index db617cb3..db83ae15 100644 --- a/src/style/Style.js +++ b/src/style/Style.js @@ -295,7 +295,7 @@ var Style = Base.extend(new function() { // something deeper down in the optimizer: // `if (size === 0) size = 0;` return this.getFontWeight() - + ' ' + fontSize + (/\[a-z]/i.test(fontSize + '') ? ' ' : 'px ') + + ' ' + fontSize + (/[a-z]/i.test(fontSize + '') ? ' ' : 'px ') + this.getFontFamily(); },