From 0e8497ab1fd7d72bbf68ed297075434bec814437 Mon Sep 17 00:00:00 2001 From: ackFromRedmi Date: Fri, 3 Apr 2026 02:46:38 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9F=D0=BE=D0=B4=D0=BF=D1=80=D0=B0=D0=B2?= =?UTF-8?q?=D0=B8=D0=BB=20=D0=BF=D1=80=D0=B5=D0=B2=D1=8C=D1=8E=20=D0=BF?= =?UTF-8?q?=D1=80=D0=B8=20=D0=B4=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5=D0=BD?= =?UTF-8?q?=D0=B8=D0=B8,=20=D0=B8=20=D0=B0=D0=B2=D1=82=D0=BE=D0=BE=D1=80?= =?UTF-8?q?=D0=B5=D0=B4=D0=B5=D0=BB=D0=B5=D0=BD=D0=B8=D0=B5=20=D1=82=D0=BE?= =?UTF-8?q?=D1=88=D1=89=D0=B8=D0=BD=D1=8B=20=D1=81=20=D0=BA=D0=BE=D0=BB-?= =?UTF-8?q?=D0=B2=D0=BE=D0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- shiftflow/templates/shiftflow/task_create.html | 2 +- shiftflow/views.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/shiftflow/templates/shiftflow/task_create.html b/shiftflow/templates/shiftflow/task_create.html index d0405d0..e2b2dc3 100644 --- a/shiftflow/templates/shiftflow/task_create.html +++ b/shiftflow/templates/shiftflow/task_create.html @@ -390,7 +390,7 @@ document.addEventListener('DOMContentLoaded', function () { // На практике встречаются варианты: "s2n45", "-s2_n45", "_s2-n45" и т.п. // Поэтому ищем "s<число> ... n<целое>" в любом месте имени, разрешая разделители между ними. const base = filenameBase(filename); - const normalized = base.replace(/\s+/g, ''); + const normalized = base.replace(/\s+/g, '').toLowerCase(); const m = normalized.match(/s([0-9]+(?:[\.,][0-9]+)?)[^0-9a-zA-Z]*n([0-9]+)/); if (!m) return false; diff --git a/shiftflow/views.py b/shiftflow/views.py index a1e5e1e..46c5df6 100644 --- a/shiftflow/views.py +++ b/shiftflow/views.py @@ -4,6 +4,7 @@ from urllib.parse import urlsplit import os import subprocess import sys +import threading from pathlib import Path from django.conf import settings as django_settings