(Grav GitSync) Automatic Commit from RealStickman

This commit is contained in:
RealStickman 2022-06-09 16:14:01 +02:00 committed by GitSync
parent 0ae5604086
commit 5c389deecc
2 changed files with 3 additions and 0 deletions

Binary file not shown.

View File

@ -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, '');
}
});