From 5eecd9696e0016f824ff24c56d129432f222475d Mon Sep 17 00:00:00 2001 From: jwage Date: Wed, 23 Jan 2008 08:25:41 +0000 Subject: [PATCH] fixes #644 --- lib/Doctrine/Parser/spyc.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/Doctrine/Parser/spyc.php b/lib/Doctrine/Parser/spyc.php index bad48c89b..6d146657c 100644 --- a/lib/Doctrine/Parser/spyc.php +++ b/lib/Doctrine/Parser/spyc.php @@ -510,6 +510,10 @@ function _parseLine($line) { $line = trim($line); + if(!preg_match("/\\\#/", $line)) { + $line = trim(preg_replace('/#.*$/', '', $line)); + } + $array = array(); if (preg_match('/^-(.*):$/',$line)) {