From 48edbf2497c74cf91f0568df223538486ed273f6 Mon Sep 17 00:00:00 2001 From: xaoxuu Date: Sat, 31 Jul 2021 19:16:01 +0800 Subject: [PATCH] copy --- scripts/tags/copy.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 += '