From 05422c9a7efb71bf887e67832a163b88022250e1 Mon Sep 17 00:00:00 2001 From: RealStickman Date: Fri, 27 May 2022 14:00:02 +0200 Subject: [PATCH] (Grav GitSync) Automatic Commit from RealStickman --- themes/learn2/js/.learn.js.swp | Bin 28672 -> 28672 bytes themes/learn2/js/learn.js | 4 +++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/themes/learn2/js/.learn.js.swp b/themes/learn2/js/.learn.js.swp index 0b0cb7d8ac712189fcd6dfff2b4b9086f2f14254..03e00590087aa700b78ec63f2147145d1b5e83c4 100644 GIT binary patch delta 177 zcmZp8z}WDBQ6b47%+puFLeGc+2m}}yl=egO!0{1{*|&?PS4#*P=S?3=CpGd;=&7l35PK^_v9)9a$&K`Poh` d@Mpz})5CHmdxi^7mI~*e{4-2(b4>UW2>_~LE3p6o diff --git a/themes/learn2/js/learn.js b/themes/learn2/js/learn.js index 33d1be7..b033bc9 100644 --- a/themes/learn2/js/learn.js +++ b/themes/learn2/js/learn.js @@ -180,8 +180,10 @@ jQuery(document).ready(function() { text: function(trigger) { text = $(trigger).prev('code').text(); console.log(text); - text = text.substr(1); + text = text.replace(/^[\$\s\#]*/gm, ''); console.log(text); + //text = text.substr(1); + //console.log(text); //return text.replace(/^\$\s/gm, ''); return text.replace(/^\$\s\#\s/gm, ''); }