diff --git a/themes/learn2/js/.learn.js.swp b/themes/learn2/js/.learn.js.swp deleted file mode 100644 index 99912c9..0000000 Binary files a/themes/learn2/js/.learn.js.swp and /dev/null differ diff --git a/themes/learn2/js/learn.js b/themes/learn2/js/learn.js index 73bd860..2a6186c 100644 --- a/themes/learn2/js/learn.js +++ b/themes/learn2/js/learn.js @@ -179,6 +179,9 @@ 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 # or $ from the beginning of my inline command blocks + return text.replace(/^[\$\s\#\$]{1,4}/gm, ''); + // original code return text.replace(/^\$\s/gm, ''); } });