aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor <pashev.igor@gmail.com>2010-11-04 23:39:42 +0300
committerIgor <pashev.igor@gmail.com>2010-11-04 23:39:42 +0300
commitabc4029b035c307e3479967a1ab94231ea983a7e (patch)
tree986f70abd4b4b2e65f6f9b0c38d78b04f5348ff4
parentb672ba367d346b06eb09c63cc7c3b17b6db0f803 (diff)
downloaddokuwiki-plugin-papers-abc4029b035c307e3479967a1ab94231ea983a7e.tar.gz
Fixed regex for a BiBTeX field
-rw-r--r--bibtex.php2
1 files changed, 1 insertions, 1 deletions
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.