From 7c827f1e2b9e27b2a772df4a1f5ce9e7d5bac2d2 Mon Sep 17 00:00:00 2001 From: Teodor Tsvetkov Date: Mon, 25 Sep 2023 12:13:47 +0300 Subject: [PATCH] Remove the semicolon character if it is at the end of the charset. --- src/Property/Charset.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Property/Charset.php b/src/Property/Charset.php index 26e1b250..068fb368 100644 --- a/src/Property/Charset.php +++ b/src/Property/Charset.php @@ -66,7 +66,7 @@ public function setCharset($sCharset) */ public function getCharset() { - return $this->oCharset->getString(); + return preg_replace('/;$/', '', $this->oCharset->getString()); } /**