From 130140e9105d5c73f9c522b459a74b926fd3a467 Mon Sep 17 00:00:00 2001 From: Joshua Ramon Enslin Date: Fri, 18 Sep 2020 19:17:10 +0200 Subject: [PATCH] =?UTF-8?q?Remove=20"k=C3=B6zott"=20for=20timespans?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/NodaTimeSplitter.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/NodaTimeSplitter.php b/src/NodaTimeSplitter.php index e7138c8..9e235ee 100644 --- a/src/NodaTimeSplitter.php +++ b/src/NodaTimeSplitter.php @@ -104,6 +104,7 @@ final class NodaTimeSplitter { while (strpos($input, " -") !== false) $input = str_replace(" -", "-", $input); while (strpos($input, "- ") !== false) $input = str_replace("- ", "-", $input); + if (stripos($input, "között") !== false) $input = str_replace("között", " ", $input); return trim($input, ", [](){}");