Skip to content

Commit

Permalink
pwcite: fix detection of bibliography
Browse files Browse the repository at this point in the history
  • Loading branch information
nichtich committed Feb 21, 2019
1 parent 6387c1f commit a79e3c9
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
@@ -1,3 +1,11 @@
0.3.8 (2019-02-21)

* pwcite: fix detection of bibliography

0.3.7 (2019-02-20)

* wcite: Fix command 'show' without bibliography file

0.3.6 (2019-02-17)

* wcite: add option --ids to read ids from file or STDIN
Expand Down
2 changes: 1 addition & 1 deletion lib/pwcite.js
Expand Up @@ -52,7 +52,7 @@ function replaceCitekeys (doc, citekeys) {
function filter (root, format, meta) {
let { bibliography, nocite } = metavalues(root)
if (Array.isArray(bibliography)) {
bibliography = bibliography.first(f => f.match(/\.json$/))
bibliography = bibliography.find(f => f.match(/\.json$/))
} else if (bibliography && !bibliography.match(/.json$/)) {
bibliography = undefined
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "wcite",
"version": "0.3.7",
"version": "0.3.8",
"description": "Use Wikidata as reference manager",
"homepage": "https://github.com/wikicite/wcite#readme",
"author": "Jakob Voß",
Expand Down

0 comments on commit a79e3c9

Please sign in to comment.