Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Used fonts with single quotes where not highlighted (related to issue

2495)
  • Loading branch information...
commit af190b35bdff0557a1771b26a0778146970e92ce 1 parent 9cb646e
@SebastianZ SebastianZ authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 extension/content/firebug/css/stylePanel.js
View
5 extension/content/firebug/css/stylePanel.js
@@ -712,7 +712,7 @@ function getFontPropValueParts(element, value)
{
for (var i = 0; i < fonts.length; ++i)
{
- if (font == fonts[i].replace(/^"(.*)"$/, "$1").toLowerCase())
+ if (font == fonts[i].replace(/^["'](.*)["']$/, "$1").toLowerCase())
return true;
}
@@ -758,8 +758,9 @@ function getFontPropValueParts(element, value)
var genericFontUsed = false;
for (; i < fonts.length; ++i)
{
- var font = fonts[i].replace(/^"(.*)"$/, "$1").toLowerCase();
+ var font = fonts[i].replace(/^["'](.*)["']$/, "$1").toLowerCase();
var isUsedFont = false;
+ FBTrace.sysout("font", font);
for (var j = 0; j < usedFonts.length; ++j)
{
var usedFont = usedFonts[j].CSSFamilyName.toLowerCase();
Please sign in to comment.
Something went wrong with that request. Please try again.