diff --git a/themes/learn2/js/.learn.js.swp b/themes/learn2/js/.learn.js.swp index 0b0cb7d..03e0059 100644 Binary files a/themes/learn2/js/.learn.js.swp and b/themes/learn2/js/.learn.js.swp differ diff --git a/themes/learn2/js/learn.js b/themes/learn2/js/learn.js index 33d1be7..b033bc9 100644 --- a/themes/learn2/js/learn.js +++ b/themes/learn2/js/learn.js @@ -180,8 +180,10 @@ jQuery(document).ready(function() { text: function(trigger) { text = $(trigger).prev('code').text(); console.log(text); - text = text.substr(1); + text = text.replace(/^[\$\s\#]*/gm, ''); console.log(text); + //text = text.substr(1); + //console.log(text); //return text.replace(/^\$\s/gm, ''); return text.replace(/^\$\s\#\s/gm, ''); }