Skip to content

Commit a7ad8f1

Browse files
authored
Merge pull request #71 from OS2Forms/develop
Deploy 3.13.2
2 parents 684d802 + cb58235 commit a7ad8f1

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ before starting to add changes. Use example [placed in the end of the page](#exa
1111

1212
## [Unreleased]
1313

14+
## [3.13.2] 2023-10-19
15+
16+
- Fixing CPR fetch pattern
17+
1418
## [3.13.1] 2023-10-19
1519

1620
- Checking CPR format before fetching data

modules/os2forms_nemid/src/Element/NemidCprFetchData.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public static function getCompositeElements(array $element) {
1616
$elements = parent::getCompositeElements($element);
1717

1818
// Pattern for CPR.
19-
$elements[self::getValueElementName()]['#pattern'] = '\d{6}-\d{4}';
19+
$elements[self::getValueElementName()]['#pattern'] = '\d{6}(-)?\d{4}';
2020

2121
return $elements;
2222
}

0 commit comments

Comments
 (0)