Skip to content

Commit

Permalink
chore
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisgrieser committed Feb 4, 2023
1 parent 84f62e1 commit 208c0e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/add-new-entry.js
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ function run(argv) {
.replace(/^ {2}/gm, "\t") // indentation
.replace(/^\s*\w+ =/gm, field => field.toLowerCase()) // lowercase all keys
.replace(keysToDeleteRegex, "")
.replace(/^\t(publisher.*?)\{?(?: ?\{?gmbh|ltd|publications|llc)\}?(.*)$/mi, "$1$2") // publisher garbage
.replace(/^\t(publisher.*?)\{?(?: ?\{?gmbh|ltd|publications|llc)\}?(.*)$/mi, "\t$1$2") // publisher garbage
.replace("\tdate =", "\tyear =") // consistently "year"
.replace("%2F", "/") // fix for URL key in some DOIs
.replace(/\tyear = \{?(\d{4}).*\}?/g, "\tyear = $1,") // clean year key
Expand Down

0 comments on commit 208c0e6

Please sign in to comment.