From 01c746fd0638e696201f7690ef9f0661fb76b25c Mon Sep 17 00:00:00 2001 From: yueyang <2495544247@qq.com> Date: Tue, 27 Oct 2026 16:33:08 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=AD=A3=E7=B3=BB=E7=BB=9F?= =?UTF-8?q?=E5=8C=96=E5=BE=85=E5=8A=9E=E4=BA=BA=E5=91=98=E7=AD=9B=E9=80=89?= =?UTF-8?q?=E5=B9=B6=E8=B0=83=E6=95=B4=E6=9F=A5=E8=AF=A2=E6=8C=89=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Business/SystemizationTodos.php | 5 +++- .../pages/systemization-todos.blade.php | 4 +-- .../Business/SystemizationTodosTest.php | 27 +++++++++++++++++++ 3 files changed, 33 insertions(+), 3 deletions(-) diff --git a/app/Http/Controllers/Business/SystemizationTodos.php b/app/Http/Controllers/Business/SystemizationTodos.php index f017371b..b486001c 100644 --- a/app/Http/Controllers/Business/SystemizationTodos.php +++ b/app/Http/Controllers/Business/SystemizationTodos.php @@ -811,7 +811,10 @@ class SystemizationTodos extends Controller ->whereNotNull($column) ->where($column, '<>', '') ->pluck($column) - ->flatMap(static fn (string $value): array => array_map('trim', preg_split('/[、,,]/u', $value) ?: [])) + ->flatMap(static fn (string $value): array => array_map( + 'trim', + preg_split('/[、,,;;\/]+/u', $value) ?: [], + )) ->filter() ->unique() ->sort() diff --git a/resources/views/business/pages/systemization-todos.blade.php b/resources/views/business/pages/systemization-todos.blade.php index 62c78627..f21d55a3 100644 --- a/resources/views/business/pages/systemization-todos.blade.php +++ b/resources/views/business/pages/systemization-todos.blade.php @@ -379,7 +379,7 @@