diff --git a/themes/learn2/js/.learn.js.swp b/themes/learn2/js/.learn.js.swp index c115ded..8731f36 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 d88f0d1..2027e8c 100644 --- a/themes/learn2/js/learn.js +++ b/themes/learn2/js/learn.js @@ -179,7 +179,9 @@ jQuery(document).ready(function() { var text, clip = new Clipboard('.copy-to-clipboard', { text: function(trigger) { text = $(trigger).prev('code').text(); - console.log(text) + console.log(text); + text = text.replace(/\s\#\s/gm, ''); + console.log(text); //return text.replace(/^\$\s/gm, ''); return text.replace(/^\$\s\#\s/gm, ''); }