<?php

use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;

/* @bundles/LeadBundle/Entity/RegexTrait.php */
class __TwigTemplate_6cf8d85e058e5298e379c09e4fdfa85c7e4a9b8fc010dfe5d08f9374c628cddc extends Template
{
    private $source;
    private $macros = [];

    public function __construct(Environment $env)
    {
        parent::__construct($env);

        $this->source = $this->getSourceContext();

        $this->parent = false;

        $this->blocks = [
        ];
    }

    protected function doDisplay(array $context, array $blocks = [])
    {
        $macros = $this->macros;
        // line 1
        echo "<?php

namespace Mautic\\LeadBundle\\Entity;

trait RegexTrait
{
    /**
     * Ensure that special characters are escaped correctly.
     *
     * @param \$regex
     *
     * @return mixed
     */
    protected function prepareRegex(\$regex)
    {
        \$search = [
            '\\\\\\\\',
        ];

        \$replace = [
            '\\\\',
        ];

        return str_replace(\$search, \$replace, \$regex);
    }
}
";
    }

    public function getTemplateName()
    {
        return "@bundles/LeadBundle/Entity/RegexTrait.php";
    }

    public function getDebugInfo()
    {
        return array (  37 => 1,);
    }

    public function getSourceContext()
    {
        return new Source("", "@bundles/LeadBundle/Entity/RegexTrait.php", "/var/www/mautic/app/bundles/LeadBundle/Entity/RegexTrait.php");
    }
}
