Can you send me the completed regex? I'm having a hard time piecing the
first two emails together.  Thank you for your help BTW, my regex isn't
strong :/


On Thu, May 8, 2014 at 9:32 AM, Christophe Coevoet <notifications@github.com
> wrote:

> In DependencyInjection/Compiler/AnnotationConfigurationPass.php:
>
> > @@ -106,10 +106,10 @@ private function getClassName($filename)
> >      {
> >          $src = file_get_contents($filename);
> >
> > -        if (!preg_match('/\bnamespace\s+([^;]+);/s', $src, $match)) {
> > +        if (!preg_match('/\bnamespace\s+([^;|^{]+)[;|{]/s', $src, $match)) {
>
> and the second part should be (;|{) rather than [;|{]. And finally, {needs to be escaped in regexes as it is a special char
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/schmittjoh/JMSDiExtraBundle/pull/163/files#r12441173>
> .
>