From c8285c2207ff0f6a53ff4dd2192463b75b1ef994 Mon Sep 17 00:00:00 2001 From: Lachlan Collins Date: Wed, 8 May 2013 15:27:04 +1000 Subject: [PATCH] cleaner regex --- js/views/style/page.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/views/style/page.js b/js/views/style/page.js index fb83b63..c135141 100644 --- a/js/views/style/page.js +++ b/js/views/style/page.js @@ -215,7 +215,7 @@ function($, _, Backbone, marked, stylePageTemplate, config, jscssp, Pagedown, hl text: '
' + comment.text + '
' }); //Push the code section so marked can parse it as a
 block
-                        comment.text = comment.text.replace(/class='fixie'|class="fixie"| fixie|fixie /g, "")
+                        comment.text = comment.text.replace(/class=([""'])fixie\1|(?![""' ])fixie(?=[""' ])/g, "")
                         block.content.push(comment);
                         break;
                     case "heading":