aboutsummaryrefslogtreecommitdiffstats
path: root/Praspel.php
diff options
context:
space:
mode:
authorIvan Enderlin <ivan.enderlin@hoa-project.net>2013-05-30 14:38:54 +0200
committerIvan Enderlin <ivan.enderlin@hoa-project.net>2013-05-30 14:38:54 +0200
commit498fa500b840548c12589492d7e09f788f529db0 (patch)
tree10396670f81a8c32bdf5d630b6e1000446f3fe90 /Praspel.php
parentd0e94fb667567164e3d1c1ea20c001fdbc7a2b00 (diff)
downloadPraspel-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.php2
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(