Skip to content

Commit

Permalink
Add flexible rules check. Tag new version. Enforce Julia ^1.6 compat
Browse files Browse the repository at this point in the history
  • Loading branch information
Azzaare committed Oct 21, 2021
1 parent bd4de67 commit e2f48a0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
8 changes: 4 additions & 4 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "Bibliography"
uuid = "f1be7e48-bf82-45af-a471-ae754a193061"
authors = ["azzaare <[email protected]>"]
version = "0.2.16"
version = "0.2.17"

[deps]
BibInternal = "2027ae74-3657-4b95-ae00-e2f7d55c3e64"
Expand All @@ -11,8 +11,8 @@ Dates = "ade2ca70-3891-5945-98fb-dc099432e06a"
YAML = "ddb6d928-2868-570f-bddf-ab3f9cf99eb6"

[compat]
BibInternal = "0.3"
BibParser = "0.2"
BibInternal = "0.3.2"
BibParser = "0.2.1"
DataStructures = "0.18"
YAML = "0.4"
julia = "1.4"
julia = "1.6"
5 changes: 3 additions & 2 deletions src/bibtex.jl
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
"""
import_bibtex(input)
Import a BibTeX file or parse a BibTeX string and convert it to the internal bibliography format.
The `check` keyword argument can be set to `:none` (or `nothing`), `:warn`, or `:error` to raise appropriate logs.
"""
function import_bibtex(input)
return isfile(input) ? BibParser.parse_file(input) : BibParser.parse_entry(input)
function import_bibtex(input; check = :error)
return isfile(input) ? BibParser.parse_file(input; check) : BibParser.parse_entry(input; check)
end

"""
Expand Down

0 comments on commit e2f48a0

Please sign in to comment.