From 156c5a4238731a6bc3122ec38062bf9011f81963 Mon Sep 17 00:00:00 2001 From: Walter Date: Fri, 18 Dec 2015 09:21:00 +0100 Subject: [PATCH] Fixed Regex Fixes wrong match of regex in prepend and append. 'append' => '' would cause a wrapping breaking code. --- View/Helper/Bs3HtmlHelper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/View/Helper/Bs3HtmlHelper.php b/View/Helper/Bs3HtmlHelper.php index c4afb58..af44850 100644 --- a/View/Helper/Bs3HtmlHelper.php +++ b/View/Helper/Bs3HtmlHelper.php @@ -95,7 +95,7 @@ public function icon($class, $options = array()) { */ public function getIconVendor($class) { foreach ($this->_config['iconVendorPrefixes'] as $iconVendorPrefix) { - $regex = sprintf('/^%s-|\s%s-/', $iconVendorPrefix, $iconVendorPrefix); + $regex = sprintf('/^(?