Skip to content
This repository has been archived by the owner on Sep 7, 2021. It is now read-only.

Commit

Permalink
fixes craftyjs#222 by requiring space before and after the - when tre…
Browse files Browse the repository at this point in the history
…ating it as a special delimiter
  • Loading branch information
sorenbs committed Feb 20, 2012
1 parent cf02462 commit 30d6348
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build/build.php
Expand Up @@ -54,7 +54,7 @@ function docs($files, $path, $save) {
$block .= "\n";
break;
case PARAM:
$split = preg_split("/\s*-\s*/", $value);
$split = preg_split("/\s+-\s+/", $value);
$block .= "{$split[0]}\n:\t{$split[1]}\n\n";
break;
case RETURNS:
Expand Down Expand Up @@ -95,7 +95,7 @@ function docs($files, $path, $save) {
if($lastTag != TRIGGER) {
$block .= "###Events\n";
}
$split = preg_split("/\s*-\s*/", $value);
$split = preg_split("/\s+-\s+/", $value);
$block .= "{$split[0]}";
if(count($split) >= 3) {
$split[2] = trim($split[2]);
Expand Down

0 comments on commit 30d6348

Please sign in to comment.