Skip to content

Commit

Permalink
a hot-fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nico-zck committed Apr 5, 2022
1 parent a040248 commit 0414644
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions chrome/content/zsc.js
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ zsc.updateItem = function (item, citeCount) {
if (isDebug())
Zotero.debug("[scholar-citations] current extra field is: " + curExtra);

let newExtra = zsc.buildCiteCountString(citeCount);
let newExtra = zsc.buildCiteCountString(citeCount) + zsc._extraEntrySep;
if (zsc._extraRegex.test(curExtra)) {
// if already have ZSCC string
newExtra = curExtra.replace(zsc._extraRegex, newExtra);
Expand All @@ -166,7 +166,7 @@ zsc.updateItem = function (item, citeCount) {
);
} else {
// if not have ZSCC string
newExtra = newExtra + zsc._extraEntrySep + curExtra;
newExtra = newExtra + curExtra;
if (isDebug())
Zotero.debug("[scholar-citations] add ZSCC to extra field " + newExtra);
}
Expand Down

0 comments on commit 0414644

Please sign in to comment.