From 92e9a58e2859df786c320289311c6377a26665c5 Mon Sep 17 00:00:00 2001 From: niksedk Date: Sat, 20 Nov 2021 16:45:44 +0100 Subject: [PATCH] Minfor fix for last commit --- src/libse/Common/Utilities.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libse/Common/Utilities.cs b/src/libse/Common/Utilities.cs index 2e709ef89..64e8273fb 100644 --- a/src/libse/Common/Utilities.cs +++ b/src/libse/Common/Utilities.cs @@ -2180,7 +2180,7 @@ namespace Nikse.SubtitleEdit.Core.Common text = new Regex(@"([0456789]) (th)\b").Replace(text, "$1$2"); } - if ("en-da-es-sv-de-nb-cz".Contains(language) && text.ContainsNumber()) + if (language != null && "en-da-es-sv-de-nb-cz".Contains(language) && text.ContainsNumber()) { text = RegexNumberSpacePeriod.Replace(text, "$1$2"); }