Skip to content

Commit

Permalink
cleaner regex
Browse files Browse the repository at this point in the history
  • Loading branch information
Lockyc committed May 8, 2013
1 parent e46d7d2 commit c8285c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/views/style/page.js
Expand Up @@ -215,7 +215,7 @@ function($, _, Backbone, marked, stylePageTemplate, config, jscssp, Pagedown, hl
text: '<div class="codedemo">' + comment.text + '<div style="clear: both;"></div></div>'
});
//Push the code section so marked can parse it as a <pre><code> 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":
Expand Down

0 comments on commit c8285c2

Please sign in to comment.