From e8b73a5adfa7b0232297957e3ad7463d39a20a7e Mon Sep 17 00:00:00 2001 From: RealStickman Date: Fri, 27 May 2022 12:07:13 +0000 Subject: [PATCH] Fix indenting of custom character stripping --- themes/learn2/js/learn.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/themes/learn2/js/learn.js b/themes/learn2/js/learn.js index e636b43..49beeb4 100644 --- a/themes/learn2/js/learn.js +++ b/themes/learn2/js/learn.js @@ -179,9 +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 # from the beginning of my inline command blocks + // NOTE custom stuff to strip # from the beginning of my inline command blocks return text.replace(/^[\$\s\#]{1,3}/gm, ''); - // original code + // original code //return text.replace(/^\$\s/gm, ''); } }); @@ -210,7 +210,7 @@ jQuery(document).ready(function() { }); } }); - + // allow keyboard control for prev/next links jQuery(function() { jQuery('.nav-prev').click(function(){ @@ -231,7 +231,7 @@ jQuery(document).ready(function() { if(e.which == '39') { jQuery('.nav.nav-next').click(); } - }); + }); });