Skip to content

Commit

Permalink
do not match series that are just a number
Browse files Browse the repository at this point in the history
  • Loading branch information
GlazerMann authored Jan 23, 2024
1 parent 903f942 commit eacf49c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Template.php
Original file line number Diff line number Diff line change
Expand Up @@ -6466,7 +6466,8 @@ public function final_tidy() : void {
if (stripos($this->get('journal'), 'SIGGRAPH') !== FALSE && $this->blank('title')) {
$this->rename('journal', 'title');
}
if ($this->has('series') && stripos($this->get('title'), $this->get('series')) !== FALSE && 'Surtees Society' !== $this->get('series')) {
if ($this->has('series') && stripos($this->get('title'), $this->get('series')) !== FALSE &&
'Surtees Society' !== $this->get('series') && !preg_match(~^\d+$~,$this->get('series'))) {
$this->forget('series');
}

Expand Down

0 comments on commit eacf49c

Please sign in to comment.