From: <sk...@us...> - 2008-10-22 11:44:09
|
Revision: 1403 http://dl-learner.svn.sourceforge.net/dl-learner/?rev=1403&view=rev Author: sknappe Date: 2008-10-22 11:43:59 +0000 (Wed, 22 Oct 2008) Log Message: ----------- bugfix Modified Paths: -------------- trunk/src/dbpedia-navigator/helper_functions.php Modified: trunk/src/dbpedia-navigator/helper_functions.php =================================================================== --- trunk/src/dbpedia-navigator/helper_functions.php 2008-10-22 11:41:09 UTC (rev 1402) +++ trunk/src/dbpedia-navigator/helper_functions.php 2008-10-22 11:43:59 UTC (rev 1403) @@ -9,7 +9,7 @@ $final=''; $offset=0; - preg_match_all("/[^A-Z]([A-Z])/",$res,$treffer,PREG_OFFSET_CAPTURE); + preg_match_all("/[^-0\040A-Z]([A-Z])/",$res,$treffer,PREG_OFFSET_CAPTURE); foreach ($treffer[1] as $treff){ if ($res[$treff[1]-1]!=' '&&$res[$treff[1]-1]!='-'&&$treff[1]!=0){ $final.=substr($res,$offset,$treff[1]-$offset).' '; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |