Fix indenting of custom character stripping
This commit is contained in:
parent
f1aca203f0
commit
e8b73a5adf
@ -179,9 +179,9 @@ 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();
|
||||||
// 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, '');
|
return text.replace(/^[\$\s\#]{1,3}/gm, '');
|
||||||
// original code
|
// original code
|
||||||
//return text.replace(/^\$\s/gm, '');
|
//return text.replace(/^\$\s/gm, '');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@ -210,7 +210,7 @@ jQuery(document).ready(function() {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
// allow keyboard control for prev/next links
|
// allow keyboard control for prev/next links
|
||||||
jQuery(function() {
|
jQuery(function() {
|
||||||
jQuery('.nav-prev').click(function(){
|
jQuery('.nav-prev').click(function(){
|
||||||
@ -231,7 +231,7 @@ jQuery(document).ready(function() {
|
|||||||
if(e.which == '39') {
|
if(e.which == '39') {
|
||||||
jQuery('.nav.nav-next').click();
|
jQuery('.nav.nav-next').click();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user