Permalink
Browse files

Fix silly regression in list regex.

The carriage return cleaning had lost its backslashes, resulting in all
lowercase R's being removed by the WYSIWYG. Oops!
  • Loading branch information...
1 parent a0ee4b8 commit 8ed67f41f8ff4afc4c6efa20527b2aab9c22cb03 @bitprophet bitprophet committed Nov 7, 2009
Showing with 2 additions and 2 deletions.
  1. +2 −2 assets/javascripts/markdown.js
@@ -99,7 +99,7 @@ type: 'button',
fn: {
wiki: function() {
this.encloseLineSelection('','',function(str) {
- str = str.replace(/r/g,'');
+ str = str.replace(/\r/g,'');
return str.replace(/((?:\n|^)\s*)(\*|\d+\.)?\s*/g,"$1* ");
});
}
@@ -113,7 +113,7 @@ type: 'button',
fn: {
wiki: function() {
this.encloseLineSelection('','',function(str) {
- str = str.replace(/r/g,'');
+ str = str.replace(/\r/g,'');
return str.replace(/((?:\n|^)\s*)(\*|\d+\.)?\s*/g,"$11. ");
});
}

0 comments on commit 8ed67f4

Please sign in to comment.