From f1c473be59369e909ccc54a49fdfd8cfebc6be8a Mon Sep 17 00:00:00 2001 From: Igor Date: Wed, 10 Nov 2010 15:17:08 +0300 Subject: Support for Translate plugin (automatically choose source for and ) --- bibtex.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bibtex.php') diff --git a/bibtex.php b/bibtex.php index 7f36063..88904d4 100644 --- a/bibtex.php +++ b/bibtex.php @@ -57,7 +57,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*,?\s*$/u', $line, $matches)) + elseif (preg_match('/^\s*(\w+?)\s*=\s*(.*?)\s*,?\s*$/u', $line, $matches)) { $this->ENTRIES[$bibent][strtolower($matches[1])] = $matches[2]; /* e. g. -- cgit v1.2.3