diff --git a/scripts/tags/copy.js b/scripts/tags/copy.js index 9923a73..6de1c20 100644 --- a/scripts/tags/copy.js +++ b/scripts/tags/copy.js @@ -30,7 +30,7 @@ hexo.extend.tag.register('copy', function(args) { } } - const copy_id = 'copy_' + ++copy_index + '-' + text.replace(/[^a-z|0-9|.:]/gi, ''); + const copy_id = 'copy_' + ++copy_index; var el = ''; el += '