Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

2495)
  • Loading branch information...
commit af190b35bdff0557a1771b26a0778146970e92ce 1 parent 9cb646e
Sebastian Zartner authored May 13, 2012
5  extension/content/firebug/css/stylePanel.js
@@ -712,7 +712,7 @@ function getFontPropValueParts(element, value)
712 712
     {
713 713
         for (var i = 0; i < fonts.length; ++i)
714 714
         {
715  
-            if (font == fonts[i].replace(/^"(.*)"$/, "$1").toLowerCase())
  715
+            if (font == fonts[i].replace(/^["'](.*)["']$/, "$1").toLowerCase())
716 716
                 return true;
717 717
         }
718 718
 
@@ -758,8 +758,9 @@ function getFontPropValueParts(element, value)
758 758
     var genericFontUsed = false;
759 759
     for (; i < fonts.length; ++i)
760 760
     {
761  
-        var font = fonts[i].replace(/^"(.*)"$/, "$1").toLowerCase();
  761
+        var font = fonts[i].replace(/^["'](.*)["']$/, "$1").toLowerCase();
762 762
         var isUsedFont = false;
  763
+        FBTrace.sysout("font", font);
763 764
         for (var j = 0; j < usedFonts.length; ++j)
764 765
         {
765 766
             var usedFont = usedFonts[j].CSSFamilyName.toLowerCase();

0 notes on commit af190b3

Please sign in to comment.
Something went wrong with that request. Please try again.