Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit 8ed67f41f8ff4afc4c6efa20527b2aab9c22cb03 1 parent a0ee4b8
@bitprophet bitprophet authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 assets/javascripts/markdown.js
View
4 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. ");
});
}
Please sign in to comment.
Something went wrong with that request. Please try again.