From 94045ca2a7d9bad71898a37690f92b57bd712266 Mon Sep 17 00:00:00 2001 From: Zauberfisch Date: Tue, 20 Apr 2021 10:54:17 +0200 Subject: [PATCH] Removed unecacery trailing commas from PhoneLink Fixes php <7.3 compatibility --- src/Link/PhoneLink.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Link/PhoneLink.php b/src/Link/PhoneLink.php index 794b2e2..1cbc8b1 100644 --- a/src/Link/PhoneLink.php +++ b/src/Link/PhoneLink.php @@ -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;