diff options
author | Ivan Enderlin <ivan.enderlin@hoa-project.net> | 2013-05-30 14:38:54 +0200 |
---|---|---|
committer | Ivan Enderlin <ivan.enderlin@hoa-project.net> | 2013-05-30 14:38:54 +0200 |
commit | 498fa500b840548c12589492d7e09f788f529db0 (patch) | |
tree | 10396670f81a8c32bdf5d630b6e1000446f3fe90 /Praspel.php | |
parent | d0e94fb667567164e3d1c1ea20c001fdbc7a2b00 (diff) | |
download | Praspel-498fa500b840548c12589492d7e09f788f529db0.zip Praspel-498fa500b840548c12589492d7e09f788f529db0.tar.gz Praspel-498fa500b840548c12589492d7e09f788f529db0.tar.bz2 |
Better contract extraction.
We keep indentation of the contract.
Diffstat (limited to 'Praspel.php')
-rw-r--r-- | Praspel.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Praspel.php b/Praspel.php index 6724237..cc58bb9 100644 --- a/Praspel.php +++ b/Praspel.php @@ -312,7 +312,7 @@ class Praspel { 'Not able to extract Praspel from the following ' . 'comment:' . "\n" . '%s', 1, $comment); - $i = preg_match_all('#^[\s\*]*([^\n]*)$#m', $matches[1], $maatches); + $i = preg_match_all('#^[\s\*]*\s*\*\s?([^\n]*)$#m', $matches[1], $maatches); if(0 === $i) throw new Exception( |