diff --git a/themes/learn2/js/.learn.js.swp b/themes/learn2/js/.learn.js.swp deleted file mode 100644 index b57b267..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 49beeb4..c626fc7 100644 --- a/themes/learn2/js/learn.js +++ b/themes/learn2/js/learn.js @@ -179,8 +179,8 @@ 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 - return text.replace(/^[\$\s\#]{1,3}/gm, ''); + // NOTE custom stuff to strip # or $ from the beginning of my inline command blocks + return text.replace(/^[\$\s\#\$]{1,3}/gm, ''); // original code //return text.replace(/^\$\s/gm, ''); }