From ad74830fae1c4b395ef4d641558f15c1b0626cc3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Nilsved?= Date: Fri, 17 May 2019 09:36:00 +0200 Subject: [PATCH] Don't convert name ending in . to [] See https://github.com/kontenta/kontour/issues/115#issuecomment-475570521 --- resources/views/forms/partials/inputAttributes.blade.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/views/forms/partials/inputAttributes.blade.php b/resources/views/forms/partials/inputAttributes.blade.php index acaff76f..b6d84454 100644 --- a/resources/views/forms/partials/inputAttributes.blade.php +++ b/resources/views/forms/partials/inputAttributes.blade.php @@ -1,4 +1,4 @@ -name="{{ preg_replace('/\.([^\.]*)/', '[$1]', $name) }}" +name="{{ preg_replace('/\.([^\.]+)/', '[$1]', $name) }}" id="{{ $controlId }}" @if($errors->hasAny($errorsKeys ?? $name)) aria-invalid="true"