Skip to content

Commit

Permalink
Checking fetch CPR pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
stankut committed Oct 19, 2023
1 parent 43add74 commit 4381a0f
Showing 1 changed file with 1 addition and 1 deletion.
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 4381a0f

Please sign in to comment.