Skip to content

Commit

Permalink
fix: #22 allow space in tags
Browse files Browse the repository at this point in the history
  • Loading branch information
xiangyu committed Jun 7, 2022
1 parent 1f8fb42 commit 46f922d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/events.js
Original file line number Diff line number Diff line change
Expand Up @@ -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") {
Expand Down
3 changes: 1 addition & 2 deletions src/preferences.js
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 46f922d

Please sign in to comment.