From 0a4cba8d4e1f7e888c216027841bd15801403207 Mon Sep 17 00:00:00 2001 From: Tj Holowaychuk Date: Wed, 3 Nov 2010 14:08:35 -0700 Subject: [PATCH] renamed font to fontre --- lib/canvas.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/canvas.js b/lib/canvas.js index 741f5fa..673e2b2 100644 --- a/lib/canvas.js +++ b/lib/canvas.js @@ -60,7 +60,7 @@ var weights = 'normal|bold|bolder|lighter|[1-9](?:00)' * Font parser RegExp; */ -var font = new RegExp('^ *' +var fontre = new RegExp('^ *' + '(?:(' + weights + ') *)?' + '(?:(' + styles + ') *)?' + '(\\d+)(' + units + ') *' @@ -110,7 +110,7 @@ function normalizedColor(prop) { var parseFont = exports.parseFont = function(str){ if (cache[str]) return cache[str]; var obj = {} - , captures = font.exec(str); + , captures = fontre.exec(str); if (!captures) return; obj.weight = captures[1] || 'normal'; obj.style = captures[2] || 'normal';