Skip to content

Commit

Permalink
Deploying to gh-pages from @ e930f56 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Apr 18, 2024
1 parent b783e56 commit c4ff189
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions bibcop.pl
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.

# 2024-04-18 08.41.15
# 2024-04-18 08.46.09
package bibcop;

use warnings;
Expand All @@ -40,6 +40,7 @@ package bibcop;
'article' => ['doi', 'year', 'title', 'author', 'journal', 'volume', 'number', 'month?', 'publisher?', 'pages?'],
'inproceedings' => ['doi', 'booktitle', 'title', 'author', 'year', 'pages?', 'month?', 'organization?', 'volume?'],
'book' => ['title', 'author', 'year', 'publisher', 'doi?'],
'phdthesis' => ['title', 'author', 'year', 'school', 'doi?'],
'misc' => ['title', 'author', 'year', 'eprint?', 'archiveprefix?', 'primaryclass?', 'month?', 'publisher?', 'organization?', 'doi?', 'howpublished?', 'note?', 'pages?', 'number?', 'volume?'],
);

Expand All @@ -53,6 +54,9 @@ sub check_mandatory_tags {
}
my (%entry) = @_;
my $type = $entry{':type'};
if (not exists $blessed{$type}) {
return "The type of entry is not allowed: '$type'"
}
my $mandatory = $blessed{$type};
foreach my $tag (@$mandatory) {
if ($tag =~ /^.*\?$/) {
Expand Down Expand Up @@ -1030,7 +1034,7 @@ sub fail {
" --latex Report errors in LaTeX format using \\PackageWarningNoLine command\n\n" .
"If any issues, report to GitHub: https://github.com/yegor256/bibcop");
} elsif (exists $args{'--version'} or exists $args{'-v'}) {
info('08.41.15 2024-04-18');
info('08.46.09 2024-04-18');
} else {
my ($file) = grep { not($_ =~ /^-.*$/) } @ARGV;
if (not $file) {
Expand Down
2 changes: 1 addition & 1 deletion bibcop.sty
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@

\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{bibcop}
[2024-04-18 08.41.15 Style Checker of Bibliography Files]
[2024-04-18 08.46.09 Style Checker of Bibliography Files]



Expand Down

0 comments on commit c4ff189

Please sign in to comment.