Skip to content

Commit 89699e9

Browse files
committed
Merge pull request #20 from Cakephp-Italia/master
Fixed Regex
2 parents f796008 + 156c5a4 commit 89699e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

View/Helper/Bs3HtmlHelper.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ public function icon($class, $options = array()) {
9595
*/
9696
public function getIconVendor($class) {
9797
foreach ($this->_config['iconVendorPrefixes'] as $iconVendorPrefix) {
98-
$regex = sprintf('/^%s-|\s%s-/', $iconVendorPrefix, $iconVendorPrefix);
98+
$regex = sprintf('/^(?<!<"\')(%s[\s-]){1,}/', $iconVendorPrefix, $iconVendorPrefix);
9999
if (preg_match($regex, $class)) {
100100
return $iconVendorPrefix;
101101
}

0 commit comments

Comments
 (0)