monperrus / bibtexbrowser

Beautiful publication lists with bibtex and PHP (standalone or in Wordpress)
http://www.monperrus.net/martin/bibtexbrowser/
84 stars 54 forks source link

PHP Warning: preg_match(): #111

Closed tobybreckon closed 6 days ago

tobybreckon commented 3 years ago

I get the following error:

[13-May-2021 03:01:45 America/Boise] PHP Warning:  preg_match(): Compilation failed: unmatched closing parenthesis at offset 5 in /my/path/to/bibtexbrowser.php on line XXX

where XXX is 1749 which in my version of bibtexbrowser.php is the line:

      return preg_match('/'.$phrase.'/i',$this->getConstants().' '.join(" ",$this->getFields()));

from within function hasPhrase().

Any ideas ? [Sorry, not a PHP programmer]

T.

monperrus commented 6 days ago

fixed in latest version