Skip to content

Commit 503d4ca

Browse files
committed
Support class names with hyphens
1 parent af9c2f4 commit 503d4ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/OneLiner/OneLiner.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ static public function wrap($wrapper, $content, $wrapIfEmpty = TRUE, $attrs = NU
119119
}
120120
}
121121
// Tag name with CSS-style attributes.
122-
elseif (preg_match('@^(?<tag>[a-z0-9]+)[#\.][a-z0-9#\.]+$@si', $wrapper, $arr)) {
122+
elseif (preg_match('@^(?<tag>[a-z0-9]+)[#\.][a-z0-9#\.\-]+$@si', $wrapper, $arr)) {
123123
$attrs = isset($attrs) ? (array) $attrs : array();
124124
$tmp = substr($wrapper, strlen($arr['tag']));
125125
$wrapper = $arr['tag'];

0 commit comments

Comments
 (0)