Update for biber-2.1-1
[git/cygwin-packages/biber.git] / update_for_5_22.patch
CommitLineData
82f69dd5
KB
1--- a/lib/Biber/Input/file/bibtex.pm
2+++ b/lib/Biber/Input/file/bibtex.pm
3@@ -657,8 +657,6 @@ sub _literal {
4 else {
5 $bibentry->set_datafield($field, $value);
6 }
7-
8-
9 return;
10 }
11
12@@ -759,7 +757,7 @@ sub _name {
13 # Check for malformed names in names which aren't completely escaped
14
15 # Too many commas
16- unless ($name =~ m/\A{\X+}\z/xms) { # Ignore these tests for escaped names
17+ unless ($name =~ m/\A\{\X+\}\z/xms) { # Ignore these tests for escaped names
18 my @commas = $name =~ m/,/g;
19 if ($#commas > 1) {
20 biber_warn("Name \"$name\" has too many commas: skipping name", $bibentry);
21@@ -1262,8 +1260,8 @@ my %months = (
22
23 sub _hack_month {
24 my $in_month = shift;
25- if ($in_month =~ m/\A\s*((?:jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec).*)\s*\z/i) {
26- return $months{lc(Unicode::GCString->new($1)->substr(0,3)->as_string)};
27+ if (my ($m) = $in_month =~ m/\A\s*((?:jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec).*)\s*\z/i) {
28+ return $months{lc(Unicode::GCString->new($m)->substr(0,3)->as_string)};
29 }
30 else {
31 return $in_month;
32diff --git a/lib/Biber/LaTeX/Recode.pm b/lib/Biber/LaTeX/Recode.pm
33index a2900b2..427f7f5 100644
34--- a/lib/Biber/LaTeX/Recode.pm
35+++ b/lib/Biber/LaTeX/Recode.pm
36@@ -230,13 +230,13 @@ sub latex_decode {
37 $text =~ s/\\not\\($re)/$map->{$1}/ge;
38 }
39 elsif ($type eq 'superscripts') {
40- $text =~ s/\\textsuperscript{($re)}/$map->{$1}/ge;
41+ $text =~ s/\\textsuperscript\{($re)\}/$map->{$1}/ge;
42 }
43 elsif ($type eq 'cmdsuperscripts') {
44- $text =~ s/\\textsuperscript{\\($re)}/$map->{$1}/ge;
45+ $text =~ s/\\textsuperscript\{\\($re)\}/$map->{$1}/ge;
46 }
47 elsif ($type eq 'dings') {
48- $text =~ s/\\ding{([2-9AF][0-9A-F])}/$map->{$1}/ge;
49+ $text =~ s/\\ding\{([2-9AF][0-9A-F])\}/$map->{$1}/ge;
50 }
51 elsif ($type eq 'letters') {
52 $text =~ s/\\($re)(?:\{\}|\s+|\b)/$map->{$1}/ge;
This page took 0.022816 seconds and 5 git commands to generate.