From c873c354ca0e4d6ab5d491e807d14678a3f39f23 Mon Sep 17 00:00:00 2001 From: kenjis Date: Tue, 7 Dec 2021 12:51:56 +0900 Subject: [PATCH 1/2] refactor: add \ for regex string Both the string before and after the change are the same string in PHP, but I got a pattern error when I entered the string before the change in https://regex101.com/. --- system/Helpers/array_helper.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/system/Helpers/array_helper.php b/system/Helpers/array_helper.php index 423f9c266dd5..258a1874a766 100644 --- a/system/Helpers/array_helper.php +++ b/system/Helpers/array_helper.php @@ -20,7 +20,8 @@ */ function dot_array_search(string $index, array $array) { - $segments = preg_split('/(? Date: Tue, 7 Dec 2021 12:54:27 +0900 Subject: [PATCH 2/2] style: break long line --- system/Helpers/array_helper.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/system/Helpers/array_helper.php b/system/Helpers/array_helper.php index 258a1874a766..2f8a5f9c8366 100644 --- a/system/Helpers/array_helper.php +++ b/system/Helpers/array_helper.php @@ -21,7 +21,12 @@ function dot_array_search(string $index, array $array) { // See https://regex101.com/r/44Ipql/1 - $segments = preg_split('/(?