Skip to content

Commit

Permalink
Removed unecacery trailing commas from PhoneLink
Browse files Browse the repository at this point in the history
Fixes php <7.3 compatibility
  • Loading branch information
Zauberfisch authored Apr 20, 2021
1 parent 8b3b4fc commit 94045ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Link/PhoneLink.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@ public function getCMSFields() : FieldList {
$fields->insertBefore('NewTab',
(new TextField('CountryPrefix', $this->fieldLabel('Prefix'), $countryMap))
->setAttribute('placeholder', '+43')
->setAttribute('pattern', '\+[1-9]+'),
->setAttribute('pattern', '\+[1-9]+')
);
$fields->insertBefore('NewTab',
(new TextField('NumberWithoutPrefix', $this->fieldLabel('Number')))
->setAttribute('placeholder', '1234567890')
->setAttribute('pattern', '[1-9][0-9]*'),
->setAttribute('pattern', '[1-9][0-9]*')
);
$fields->removeByName('NewTab');
return $fields;
Expand Down

0 comments on commit 94045ca

Please sign in to comment.