From 086eb8263177674a5aabd26b751ed2618e783505 Mon Sep 17 00:00:00 2001 From: ket4yii Date: Wed, 15 Feb 2017 20:20:18 +0700 Subject: [PATCH] [Form Element] Add percent to setName regex --- src/B8Framework/Form/Element.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/B8Framework/Form/Element.php b/src/B8Framework/Form/Element.php index a4f81693..8cd6a43b 100644 --- a/src/B8Framework/Form/Element.php +++ b/src/B8Framework/Form/Element.php @@ -28,7 +28,7 @@ abstract class Element public function setName($name) { - $this->_name = strtolower(preg_replace('/([^a-zA-Z0-9_\-])/', '', $name)); + $this->_name = strtolower(preg_replace('/([^a-zA-Z0-9_\-%])/', '', $name)); return $this; }