Skip to content

Commit

Permalink
DibiFluent: clause() argument can be in upper-case
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Jan 24, 2010
1 parent 65965b0 commit e232bf4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dibi/libs/DibiFluent.php
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ private static function _formatClause($s)
$s .= 'By';
trigger_error("Did you mean '$s'?", E_USER_NOTICE);
}
return strtoupper(preg_replace('#[A-Z]#', ' $0', $s));
return strtoupper(preg_replace('#[a-z](?=[A-Z])#', '$0 ', $s));

}

Expand Down

0 comments on commit e232bf4

Please sign in to comment.