From 4381a0fa7bfa7c3ef54a0735fc4498ab7930b724 Mon Sep 17 00:00:00 2001 From: Stanislav Kutasevits Date: Thu, 19 Oct 2023 14:14:16 +0300 Subject: [PATCH 1/2] Checking fetch CPR pattern --- modules/os2forms_nemid/src/Element/NemidCprFetchData.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/os2forms_nemid/src/Element/NemidCprFetchData.php b/modules/os2forms_nemid/src/Element/NemidCprFetchData.php index 5c20fbb8..8906b980 100644 --- a/modules/os2forms_nemid/src/Element/NemidCprFetchData.php +++ b/modules/os2forms_nemid/src/Element/NemidCprFetchData.php @@ -16,7 +16,7 @@ public static function getCompositeElements(array $element) { $elements = parent::getCompositeElements($element); // Pattern for CPR. - $elements[self::getValueElementName()]['#pattern'] = '\d{6}-\d{4}'; + $elements[self::getValueElementName()]['#pattern'] = '\d{6}(-)?\d{4}'; return $elements; } From 40bd8445c5001da464c1215c6aeb74c172f1d522 Mon Sep 17 00:00:00 2001 From: Stanislav Kutasevits Date: Thu, 19 Oct 2023 14:15:54 +0300 Subject: [PATCH 2/2] Updating changelog --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8b93e9c8..9bf72d67 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,10 @@ before starting to add changes. Use example [placed in the end of the page](#exa ## [Unreleased] +## [3.13.2] 2023-10-19 + +- Fixing CPR fetch pattern + ## [3.13.1] 2023-10-19 - Checking CPR format before fetching data