Support CSS classes containing: -
authorshort <>
Mon, 5 Dec 2005 13:50:19 +0000 (13:50 +0000)
committershort <>
Mon, 5 Dec 2005 13:50:19 +0000 (13:50 +0000)
css_inherit.js

index 4afea32..181e7ed 100644 (file)
@@ -65,7 +65,7 @@ function css_inherit()
                                        continue;
                                var re;
                                if (!(re=rule.selectorText.toLowerCase()
-                                               .match(/^\s*[.](\w+).*\[\s*-lace-inherit\s*=\s*"?([^"]*)"?\s*\]\s*/)))
+                                               .match(/^\s*[.]([-\w]+).*\[\s*-lace-inherit\s*=\s*"?([^"]*)"?\s*\]\s*/)))
                                        continue;
                                var from_string=re[1];
                                var to_string=re[2];