Skip to content

Commit

Permalink
Merge pull request #71 from OS2Forms/develop
Browse files Browse the repository at this point in the history
Deploy 3.13.2
  • Loading branch information
stankut authored Oct 19, 2023
2 parents 684d802 + cb58235 commit a7ad8f1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion modules/os2forms_nemid/src/Element/NemidCprFetchData.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit a7ad8f1

Please sign in to comment.