(Grav GitSync) Automatic Commit from RealStickman

This commit is contained in:
RealStickman 2022-05-27 14:02:02 +02:00 committed by GitSync
parent 671e59dd04
commit 53e849a6b4
2 changed files with 1 additions and 5 deletions

Binary file not shown.

View File

@ -179,12 +179,8 @@ jQuery(document).ready(function() {
var text, clip = new Clipboard('.copy-to-clipboard', { var text, clip = new Clipboard('.copy-to-clipboard', {
text: function(trigger) { text: function(trigger) {
text = $(trigger).prev('code').text(); text = $(trigger).prev('code').text();
console.log(text); //NOTE custom stuff to strip # from the beginning of my inline command blocks
text = text.replace(/^[\$\s\#]*/gm, ''); 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, ''); return text.replace(/^\$\s\#\s/gm, '');
} }
}); });