Skip to content

Commit

Permalink
Blocks regex accepts /* */ style comments also
Browse files Browse the repository at this point in the history
  • Loading branch information
appden committed May 1, 2010
1 parent 19384d0 commit bd46a50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packager.php
Expand Up @@ -204,7 +204,7 @@ public function build($files = array(), $components = array(), $packages = array
$source = implode($included_sources, "\n\n");

foreach ($blocks as $block){
$source = preg_replace("%//<$block>.*?//</$block>%s", '', $source);
$source = preg_replace("%/[/*]\s*<$block>.*?</$block>\s*(?:\*/)?%s", '', $source);
}

return $source . "\n";
Expand Down

0 comments on commit bd46a50

Please sign in to comment.