From 9ac5934d752b9219a13307e126d2ec9c5863a938 Mon Sep 17 00:00:00 2001 From: Tj Holowaychuk Date: Mon, 8 Nov 2010 07:35:02 -0800 Subject: [PATCH] Misc refactoring of font regexp --- lib/context2d.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/context2d.js b/lib/context2d.js index 066dc39..c25338e 100644 --- a/lib/context2d.js +++ b/lib/context2d.js @@ -36,7 +36,7 @@ var baselines = ['alphabetic', 'top', 'bottom', 'middle', 'ideographic', 'hangin * Font RegExp helpers. */ -var weights = 'normal|bold|bolder|lighter|[1-9](?:00)' +var weights = 'normal|bold|bolder|lighter|[1-9]00' , styles = 'normal|italic|oblique' , units = 'px|pt|pc|in|cm|mm|%' , string = '"([^"]+)"|[\\w-]+';