diff --git a/app/src/main/java/com/example/research/core/domain/model/DictionarySource.kt b/app/src/main/java/com/example/research/core/domain/model/DictionarySource.kt
index 7df0ce1..a48d9da 100644
--- a/app/src/main/java/com/example/research/core/domain/model/DictionarySource.kt
+++ b/app/src/main/java/com/example/research/core/domain/model/DictionarySource.kt
@@ -102,12 +102,15 @@ data class DictionarySource(
fun validateTemplate(template: String): ValidationResult {
val trimmed = template.trim()
+ val lowerTemplate = trimmed.lowercase()
return when {
trimmed.isBlank() -> ValidationResult.Error(ValidationError.EMPTY)
trimmed.length > 2048 -> ValidationResult.Error(ValidationError.TOO_LONG)
!trimmed.startsWith("http://") && !trimmed.startsWith("https://") ->
ValidationResult.Error(ValidationError.INVALID_PROTOCOL)
- !trimmed.endsWith(".gz") && !trimmed.endsWith(".dsl") && !trimmed.endsWith(".dz") ->
+ !lowerTemplate.endsWith(".gz") &&
+ !lowerTemplate.endsWith(".dsl") &&
+ !lowerTemplate.endsWith(".dsl.dz") ->
ValidationResult.Error(ValidationError.INVALID_EXTENSION)
!isValidUrlStructure(trimmed) ->
ValidationResult.Error(ValidationError.INVALID_URL_STRUCTURE)
diff --git a/app/src/main/res/values-ru/strings.xml b/app/src/main/res/values-ru/strings.xml
index 7ab2cce..bd511f0 100644
--- a/app/src/main/res/values-ru/strings.xml
+++ b/app/src/main/res/values-ru/strings.xml
@@ -76,7 +76,7 @@
Этот словарь уже существует (одинаковый префикс)
URL не может быть пустым
Должен начинаться с http:// или https://
- Должен заканчиваться на .gz, .dsl или .dz
+ Должен заканчиваться на .gz, .dsl или .dsl.dz
URL слишком длинный (максимум 2048 символов)
Неверный формат URL
URL содержит недопустимые символы
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index 5fd1ba5..2a03b5a 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -74,7 +74,7 @@
This dictionary already exists
URL cannot be empty
Must start with http:// or https://
- Must end with .gz, .dsl, or .dz
+ Must end with .gz, .dsl, or .dsl.dz
URL is too long (max 2048 characters)
Invalid URL format
URL contains invalid characters