From 1a76ae5f63dc44c4bfefe0660d30c55db00c0955 Mon Sep 17 00:00:00 2001 From: GlazerMann Date: Fri, 20 Dec 2024 08:28:17 -0600 Subject: [PATCH] Single zero is valid for some CS journals --- Template.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Template.php b/Template.php index 0f3c9220a3..14083182ba 100644 --- a/Template.php +++ b/Template.php @@ -7503,7 +7503,7 @@ public function tidy_parameter(string $param): void } // Remove leading zeroes $value = $this->get($param); - if ($value !== '') { + if ($value !== '' && $value !== '0') { // Single zero is valid for some CS journals $value = safe_preg_replace('~^0+~', '', $value); if ($value === '') { $this->forget($param); // Was all zeros