From 46f922d2646f3ac6e27a1f6d0f9b7cec23b2e341 Mon Sep 17 00:00:00 2001 From: xiangyu <3170102889@zju.edu.cn> Date: Tue, 7 Jun 2022 16:01:57 +0800 Subject: [PATCH] fix: #22 allow space in tags --- src/events.js | 2 +- src/preferences.js | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/events.js b/src/events.js index 3518e16..ba46bb8 100644 --- a/src/events.js +++ b/src/events.js @@ -121,7 +121,7 @@ export default { }, recordTabs: function () { - Zotero.debug("111"); + Zotero.debug("Zotero Tag: Tabs record updated."); Zotero.ZoteroTag._tabs = []; for (const tab of Zotero_Tabs._tabs) { if (tab.type === "reader") { diff --git a/src/preferences.js b/src/preferences.js index cc73383..6f0b99a 100644 --- a/src/preferences.js +++ b/src/preferences.js @@ -19,8 +19,7 @@ addRule = function () { rule.id = -1; rule.tags = document .getElementById("zoterotag-rules-#-tags") - .value.replace(/\s/g, "") - .split(","); + .value.split(","); rule.group = document.getElementById("zoterotag-rules-#-group").value; let selected = document.getElementById( "zoterotag-rules-#-actions"