From abc4029b035c307e3479967a1ab94231ea983a7e Mon Sep 17 00:00:00 2001 From: Igor Date: Thu, 4 Nov 2010 23:39:42 +0300 Subject: Fixed regex for a BiBTeX field --- bibtex.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bibtex.php b/bibtex.php index 0484915..1d72b29 100644 --- a/bibtex.php +++ b/bibtex.php @@ -58,7 +58,7 @@ class BibtexParser $this->ENTRIES[$bibent]['id'] = strtolower($matches[2]); // e. g. $ENTRIES['pashev_2010_axiom']['entry'] = 'book' } - elseif (preg_match('/(\w+?)\s*=\s*(.*?)\s*,?$/u', $line, $matches)) + elseif (preg_match('/(\w+?)\s*=\s*(.*?)\s*,?\s*$/u', $line, $matches)) { $this->ENTRIES[$bibent][strtolower($matches[1])] = $matches[2]; /* e. g. -- cgit v1.2.3