diff --git a/themes/learn2/js/.learn.js.swp b/themes/learn2/js/.learn.js.swp index a80dc1d..c731234 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 7987db9..258d629 100644 --- a/themes/learn2/js/learn.js +++ b/themes/learn2/js/learn.js @@ -179,9 +179,10 @@ jQuery(document).ready(function() { var text, clip = new Clipboard('.copy-to-clipboard', { text: function(trigger) { text = $(trigger).prev('code').text(); - //NOTE custom stuff to strip # from the beginning of my inline command blocks - text = text.replace(/^[\$\s\#]*/gm, ''); - return text.replace(/^\$\s\#\s/gm, ''); + // NOTE custom stuff to strip # from the beginning of my inline command blocks + return text.replace(/^[\$\s\#]{1,3}/gm, ''); + // original code + //return text.replace(/^\$\s/gm, ''); } });